xiongjiabin
unread,Oct 13, 2011, 11:34:19 PM10/13/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nodejs
I am writing a auth function using node.js and express, how to set the
session timeout after log in?
Here are my code.
//in log in part
if( isValidUser(user,pass)) {
req.session.valid = true;
req.session.user = user;
}
//other part that need to determine user log in or not
if(req.session.valid) {
......
}
My problem is after some seconds or some minutes, the
req.session.valid will be removed in the session object, where is the
problem?
Cheers,
Totty