secret: process.env.ZOMBOCOM_SESSION_SECRET,
resave: false,
saveUninitialized: true,
- rolling: true
+ rolling: true,
+ // Let each cookie live for a full month
+ cookie: {
+ path: '/',
+ httpOnly: true,
+ secure: false,
+ maxAge: 1000 * 60 * 60 * 24 * 30
+ }
});
app.use(session_middleware);