Merge pull request #172 from j6k4m8/patch-1

Remove expiry from cookies
This commit is contained in:
Max Wu 2016-09-27 00:18:39 +08:00 committed by GitHub
commit 732d5bc289
1 changed files with 1 additions and 2 deletions

3
app.js
View File

@ -116,8 +116,7 @@ app.use(session({
saveUninitialized: true, //always create session to ensure the origin
rolling: true, // reset maxAge on every response
cookie: {
maxAge: config.sessionlife,
expires: new Date(Date.now() + config.sessionlife)
maxAge: config.sessionlife
},
store: sessionStore
}));