Skip to content

Passing new session value from server to user browser?? #292

Description

@1nfinite

Assuming that the user has an existing cookie in his/her browser.

And the user do a request to the server.
Suppose that I have explicitly change the expiry date time in session as follow if the user request success, how could I push this newly set expiry datetime back to the targeted user browser who did this request?

var hour = 3600000
req.session.cookie.expires = new Date(Date.now() + hour)
req.session.cookie.maxAge = hour

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions