summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app.js b/app.js
index b8bb316d..ec411be5 100644
--- a/app.js
+++ b/app.js
@@ -100,9 +100,10 @@ app.use(session({
secret: config.sessionsecret,
resave: false, //don't save session if unmodified
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),
+ expires: new Date(Date.now() + config.sessionlife)
},
store: sessionStore
}));