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
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?