Comparing version 0.1.0-beta-55 to 0.1.0-beta-56
@@ -310,2 +310,21 @@ "use strict"; | ||
* @author Igor Ivanovic | ||
* @method Controller#removeSession | ||
* | ||
* @description | ||
* Remove session key | ||
* @return {string} | ||
*/ | ||
removeSession: function (key) { | ||
var session = component.get('storage/session'), | ||
session_id = this.getCookie(session.getCookieKey()); | ||
if (Type.isString(key)) { | ||
return session.remove(session_id + key); | ||
} | ||
throw new error.HttpError(500, {key: key, session_id: session_id}, 'Controller.removeSession: key must be string type'); | ||
}, | ||
/** | ||
* @since 0.0.1 | ||
* @author Igor Ivanovic | ||
* @method Controller#setCookie | ||
@@ -312,0 +331,0 @@ * |
@@ -5,3 +5,3 @@ { | ||
"description": "Powerful lightweight mvc framework for nodejs", | ||
"version": "0.1.0-beta-55", | ||
"version": "0.1.0-beta-56", | ||
"dependencies" : { | ||
@@ -8,0 +8,0 @@ "mongoose": "3.8.x", |
139226
4443