Remove expiry from cookies

As per [this issue](https://github.com/expressjs/session/issues/365)
This commit is contained in:
Jordan Matelsky 2016-09-26 12:13:24 -04:00 committed by GitHub
parent 21afa2de14
commit 937e982109
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 saveUninitialized: true, //always create session to ensure the origin
rolling: true, // reset maxAge on every response rolling: true, // reset maxAge on every response
cookie: { cookie: {
maxAge: config.sessionlife, maxAge: config.sessionlife
expires: new Date(Date.now() + config.sessionlife)
}, },
store: sessionStore store: sessionStore
})); }));