summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Matelsky2016-09-26 12:13:24 -0400
committerGitHub2016-09-26 12:13:24 -0400
commit937e982109793b24cee33ed55aa8b855cee26ad1 (patch)
tree91278d50b683954ed7d5e103ee997fbf59ce2fc2
parent21afa2de14bec4b4eb08f5e58d884753b510dfb9 (diff)
Remove expiry from cookies
As per [this issue](https://github.com/expressjs/session/issues/365)
Diffstat (limited to '')
-rw-r--r--app.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/app.js b/app.js
index 339ff6c2..86fc28b3 100644
--- a/app.js
+++ b/app.js
@@ -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
}));