Skip to content

Server-side req.session.cookie expiration data not updating? #170

@delfuego

Description

@delfuego

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions