Update Expiration Date at every request #47
-
Is there a way to update the expiration date (of both the cookie and the server-managed session) at every request? Something along the line what is described there: https://stackoverflow.com/questions/35106336/sessions-should-a-session-cookie-be-refreshed-for-each-request I like "By sending it every time, the app ensures that the session expires two hours after their last page hit.". But is this even desirable security-wise? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
It's technically possible to do this manually with |
Beta Was this translation helpful? Give feedback.
It's technically possible to do this manually with
set_expiration_time
. You could automate this with a custom extractor, for example and then use it as a middleware. That said, we could also support this more directly through additional configuration options. From a security perspective, it's dependent on your use case.