summaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'app.js')
-rw-r--r--app.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/app.js b/app.js
index 69793813..6ef6d85e 100644
--- a/app.js
+++ b/app.js
@@ -101,10 +101,9 @@ app.use(session({
resave: false, //don't save session if unmodified
saveUninitialized: true, //always create session to ensure the origin
cookie: {
- maxAge: new Date(Date.now() + config.sessionlife),
+ maxAge: config.sessionlife,
expires: new Date(Date.now() + config.sessionlife),
},
- maxAge: new Date(Date.now() + config.sessionlife),
store: sessionStore
}));