diff options
author | Max Wu | 2016-09-27 00:18:39 +0800 |
---|---|---|
committer | GitHub | 2016-09-27 00:18:39 +0800 |
commit | 732d5bc289f00b013fe5b2e9212475b9cf1bdc69 (patch) | |
tree | 91278d50b683954ed7d5e103ee997fbf59ce2fc2 | |
parent | 21afa2de14bec4b4eb08f5e58d884753b510dfb9 (diff) | |
parent | 937e982109793b24cee33ed55aa8b855cee26ad1 (diff) |
Merge pull request #172 from j6k4m8/patch-1
Remove expiry from cookies
-rw-r--r-- | app.js | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 })); |