From: Carl Worth Date: Wed, 21 Dec 2022 19:51:50 +0000 (-0800) Subject: Set session to be "rolling" X-Git-Url: https://git.cworth.org/git?p=zombocom-ai;a=commitdiff_plain;h=205b1db399554a889b4767241231cefe07e1c773 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). --- 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);