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
}