diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-05-16 13:21:08 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2021-05-16 13:21:08 +0200 |
commit | 0247427e0351080e96cc97ab75a8bc614b6b20bd (patch) | |
tree | 2047567ed1a4d2b4f6e7c0fc2b21a0195afd4a7d | |
parent | e2a88e6065988a637c6ac541ff4abf0181503f4f (diff) | |
download | server-0247427e0351080e96cc97ab75a8bc614b6b20bd.tar.gz |
server: Use rolling session expiration.
-rw-r--r-- | server.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 } })); |