I would like my session cookie to expire after 30 minutes so I set a
maxAge
value for the cookie.
But I also want to "reset" the cookie from expirying in case of specific calls.
How can I achieve that?
Thanks.
e
ephemient
06/11/2024, 7:57 PM
update the session, which will overwrite the cookie
🙏 1
n
Norbi
06/12/2024, 6:48 AM
Hm, thanks.
I will check out whether if I write the same value to the session, the cookie is really updated, and the session data itself is not written to the session storage (because it would result in a performance problem, especially if the cookie storage is not file-based).
a
Aleksei Tirman [JB]
06/12/2024, 7:24 AM
Unfortunately, the session cookie is sent only when the storage is updated.