aliez-session
v1.0.3
Published
aliez session midware
Downloads
5
Readme
aliez-session
Aliez服务器的session组件
安装
npm install aliez-session
使用
var aliez = require('aliez');
var aliez_session = require('aliez-session');
aliez.createServer()
.use(aliez_session)
.get('/', function(req, res){
// 获取session
console.log(req.session);
// 设置session
res.session({id: 123});
}).listen(8080);