Comparing version 0.1.0-beta-58 to 0.1.0-beta-59
@@ -311,3 +311,3 @@ "use strict"; | ||
} else if (!session_id) { | ||
session_id = new Buffer(this.__requestApi__.uuid() + '_' + (new Date).toString() + '_' + Math.random()).toString("base64"); | ||
session_id = this.__requestApi__.uuid() + '_' + (new Date).getTime(); | ||
this.setCookie(session.getCookieKey(), session_id, session.getExpiredTime()); | ||
@@ -314,0 +314,0 @@ } |
@@ -97,3 +97,3 @@ "use strict"; | ||
// clear old timeout to avoid memory leak | ||
clearTimeout(this.config.storage.get(tKey)); | ||
clearTimeout(parseInt(this.config.storage.get(tKey))); | ||
// remove old time key | ||
@@ -110,3 +110,3 @@ this.config.storage.remove(tKey); | ||
// set id value | ||
this.config.storage.set(tKey, id, this.getExpiredTime()); | ||
this.config.storage.set(tKey, id.toString(), this.getExpiredTime()); | ||
}, | ||
@@ -113,0 +113,0 @@ /** |
@@ -5,3 +5,3 @@ { | ||
"description": "Powerful lightweight mvc framework for nodejs", | ||
"version": "0.1.0-beta-58", | ||
"version": "0.1.0-beta-59", | ||
"dependencies" : { | ||
@@ -8,0 +8,0 @@ "mongoose": "3.8.x", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
147587