expires was never defined

This commit is contained in:
John McLear 2013-03-23 18:01:44 +00:00
parent b3988e30d5
commit d515acae96
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ SessionStore.prototype.get = function(sid, fn){
{ {
if (sess) { if (sess) {
sess.cookie.expires = 'string' == typeof sess.cookie.expires ? new Date(sess.cookie.expires) : sess.cookie.expires; sess.cookie.expires = 'string' == typeof sess.cookie.expires ? new Date(sess.cookie.expires) : sess.cookie.expires;
if (!sess.cookie.expires || new Date() < expires) { if (!sess.cookie.expires || new Date() < sess.cookie.expires) {
fn(null, sess); fn(null, sess);
} else { } else {
self.destroy(sid, fn); self.destroy(sid, fn);