From 0247427e0351080e96cc97ab75a8bc614b6b20bd Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 16 May 2021 13:21:08 +0200 Subject: server: Use rolling session expiration. --- server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server.js') 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 } })); -- cgit v1.2.3