Comparing version 0.1.19 to 0.1.20
@@ -197,4 +197,2 @@ /** | ||
tag("before_res_end", this); | ||
//end前保存session | ||
this.session && this.session.flush(); | ||
this.res.end(); | ||
@@ -201,0 +199,0 @@ } |
@@ -53,4 +53,23 @@ var crypto = require('crypto'); | ||
}, | ||
/** | ||
* 设置session | ||
* @param {[type]} name [description] | ||
* @param {[type]} value [description] | ||
*/ | ||
set: function(name, value){ | ||
return true; | ||
}, | ||
/** | ||
* 移除session | ||
* @return {[type]} [description] | ||
*/ | ||
rm: function(){ | ||
}, | ||
/** | ||
* 刷新session | ||
* @return {[type]} [description] | ||
*/ | ||
flush: function(){ | ||
} | ||
@@ -57,0 +76,0 @@ } |
@@ -51,3 +51,8 @@ /** | ||
this.data[name] = value; | ||
this.flush(); | ||
}, | ||
/** | ||
* 删除session | ||
* @return {[type]} [description] | ||
*/ | ||
rm: function(){ | ||
@@ -54,0 +59,0 @@ fs.unlink(this.file, function(){}); |
{ | ||
"name": "thinkjs", | ||
"description": "thinkphp web framework for nodejs", | ||
"version": "0.1.19", | ||
"version": "0.1.20", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "welefen", |
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
170985
5111