summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Wu2016-09-27 00:18:39 +0800
committerGitHub2016-09-27 00:18:39 +0800
commit732d5bc289f00b013fe5b2e9212475b9cf1bdc69 (patch)
tree91278d50b683954ed7d5e103ee997fbf59ce2fc2
parent21afa2de14bec4b4eb08f5e58d884753b510dfb9 (diff)
parent937e982109793b24cee33ed55aa8b855cee26ad1 (diff)
Merge pull request #172 from j6k4m8/patch-1
Remove expiry from cookies
-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
}));