summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 }
}));