summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-05-16 13:21:08 +0200
committerTor Andersson <tor@ccxvii.net>2021-05-16 13:21:08 +0200
commit0247427e0351080e96cc97ab75a8bc614b6b20bd (patch)
tree2047567ed1a4d2b4f6e7c0fc2b21a0195afd4a7d
parente2a88e6065988a637c6ac541ff4abf0181503f4f (diff)
downloadserver-0247427e0351080e96cc97ab75a8bc614b6b20bd.tar.gz
server: Use rolling session expiration.
-rw-r--r--server.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/server.js b/server.js
index c01f711..0f694a1 100644
--- a/server.js
+++ b/server.js
@@ -47,7 +47,8 @@ app.use(body_parser.urlencoded({extended:false}));
app.use(express_session({
secret: SESSION_SECRET,
resave: false,
- saveUninitialized: true,
+ rolling: true,
+ saveUninitialized: false,
store: session_store,
cookie: { maxAge: 7 * 24 * 60 * 60 * 1000 }
}));