webaccess: do not resave session

Before this change, the database was spammed with session values.
Modern express-session has this baked in.
See https://www.npmjs.com/package/express-session#resave for docs.
This commit is contained in:
John McLear 2020-03-30 14:59:20 +00:00 committed by muxator
parent 1f0058dd6f
commit c2ea2b3a6d

View file

@ -126,7 +126,7 @@ exports.expressConfigure = function (hook_name, args, cb) {
args.app.use(sessionModule({
secret: exports.secret,
store: args.app.sessionStore,
resave: true,
resave: false,
saveUninitialized: true,
name: 'express_sid',
proxy: true,