0
这是我的服务器代码,请看看在代码中的注释。的Node.js - 快递框架建立会话,并检查是否会话中
var app = express.createServer();
app.get('/', function(req, res){
// create a session with the value of an email for example: [email protected]
});
// down here I want to check the session if the session exist
if(there is a session with value [email protected]){
//do stuff
}