Is there a chance that when resave is set to false, Express is still not updating the req.session.cookie information, specifically the expires and maxAge values?
I built a simple handler that just replies with a JSON {"success": true}. I set up express-session with SequelizeStore, a maxAge of 30 minutes, rolling set to true, and resave set to false. When I hit the handler, the expiry information in the cookie that's sent to the client is properly updated with each hit, but req.session.cookie.expires and req.session.cookie.maxAge don't ever change.
Is this an issue with express-session? Or is this something that's within the control of connect-session-sequelize?
Note that if I change resave to true, then the req.session.cookie info is properly updated with each hit on the handler... which is why I'm starting here.
Is there a chance that when
resaveis set tofalse, Express is still not updating thereq.session.cookieinformation, specifically theexpiresandmaxAgevalues?I built a simple handler that just replies with a JSON
{"success": true}. I set upexpress-sessionwithSequelizeStore, amaxAgeof 30 minutes,rollingset totrue, andresaveset tofalse. When I hit the handler, the expiry information in the cookie that's sent to the client is properly updated with each hit, butreq.session.cookie.expiresandreq.session.cookie.maxAgedon't ever change.Is this an issue with
express-session? Or is this something that's within the control ofconnect-session-sequelize?Note that if I change
resavetotrue, then thereq.session.cookieinfo is properly updated with each hit on the handler... which is why I'm starting here.