Comparing version 0.1.12 to 0.1.13
@@ -374,2 +374,3 @@ "use strict"; | ||
* @param value {object|mixed} | ||
* @param refreshSessionId {Boolean} | ||
* @description | ||
@@ -379,3 +380,3 @@ * Set session | ||
*/ | ||
setSession: function Controller_setSession(key, value) { | ||
setSession: function Controller_setSession(key, value, refreshSessionId) { | ||
var session = component.get('storage/session'), | ||
@@ -385,3 +386,3 @@ session_id = this.getCookie(session.getCookieKey()); | ||
throw new error.HttpError(500, {key: key, session_id: session_id}, 'Controller.getSession: key must be string type'); | ||
} else if (!session_id) { | ||
} else if (!session_id || !!refreshSessionId) { | ||
session_id = this.__requestApi__.uuid() + '_' + (new Date).getTime(); | ||
@@ -388,0 +389,0 @@ this.setCookie(session.getCookieKey(), session_id, session.getExpiredTime()); |
@@ -5,3 +5,3 @@ { | ||
"description": "Powerful lightweight mvc framework for nodejs", | ||
"version": "0.1.12", | ||
"version": "0.1.13", | ||
"dependencies": { | ||
@@ -8,0 +8,0 @@ "mongoose": "4.1.x", |
Sorry, the diff of this file is not supported yet
158693
5106