[IMP] session_redis: add absolute expiration option

ODOO_SESSION_REDIS_EXPIRATION_ABSOLUTE=1 makes authenticated sessions expire
ODOO_SESSION_REDIS_EXPIRATION seconds after the login, whatever the activity.

Default mode: SET … EX instead of SET then EXPIRE, so a failed EXPIRE can no
longer leave a key without TTL. rotate() also resets should_rotate, as
odoo.http.FilesystemSessionStore does.
This commit is contained in:
Vincent Van Rossem committed 2026-09-25 11:03:00 +02:00
1 parent 5108bfe728
commit ff8cd092bd
7 files changed
+186 -5

No files matched your search

+1
View File
@@ -0,0 +1 @@
from . import test_session_store
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.