diff options
author | Cheng-Han, Wu | 2016-04-20 18:14:48 +0800 |
---|---|---|
committer | Cheng-Han, Wu | 2016-04-20 18:14:48 +0800 |
commit | 85c760d720113247102645a606ab7b995ae73d56 (patch) | |
tree | 51b62048c4ae35d7d073173b1d1555515c1d5441 | |
parent | 74793b516a885f21ecc1143892b6c64b916b404f (diff) |
Fix server session not set correctly
Diffstat (limited to '')
-rw-r--r-- | app.js | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -101,10 +101,9 @@ app.use(session({ resave: false, //don't save session if unmodified saveUninitialized: true, //always create session to ensure the origin cookie: { - maxAge: new Date(Date.now() + config.sessionlife), + maxAge: config.sessionlife, expires: new Date(Date.now() + config.sessionlife), }, - maxAge: new Date(Date.now() + config.sessionlife), store: sessionStore })); |