encrypted-session-nginx-module icon indicating copy to clipboard operation
encrypted-session-nginx-module copied to clipboard

Automatically renew session if there is activity?

Open fc28222 opened this issue 12 years ago • 1 comments

For example if encrypted_session_expires is set at 1 hour, it seems appropriate to extend the expiry if the user is on the site continuously during that hour.

Seems like encrypted_session_expires is a site-wise property, and even if one manually change the cookie expiry, the backend logic of the module may not follow. I am wondering what would be the best way to implement the above functionality using this module, if it is possible.

fc28222 avatar Nov 04 '13 11:11 fc28222

@fc28222 You can just re-generate the session value yourself. The expiration timestamp is directly encrypted into the session data itself.

agentzh avatar Nov 04 '13 20:11 agentzh