From 205b1db399554a889b4767241231cefe07e1c773 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 21 Dec 2022 11:51:50 -0800 Subject: [PATCH] Set session to be "rolling" That is, the expiration of the session should be extended on every request, (making the session last much longer as long as the user is interacting with it). This should help with any workaround I put in place for username tweaking on the backend, (since Hyrum's iPhone is having trouble setting his name). --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index babe270..7083b13 100644 --- a/index.js +++ b/index.js @@ -74,7 +74,8 @@ const session_middleware = session( {store: new FileStore, secret: process.env.ZOMBOCOM_SESSION_SECRET, resave: false, - saveUninitialized: true + saveUninitialized: true, + rolling: true }); app.use(session_middleware); -- 2.43.0