Files
session_redis_public/session_redis/tests/__init__.py
T
Vincent Van Rossem ff8cd092bd [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.
2026-09-25 11:03:00 +02:00

2 lines
33 B
Python

from . import test_session_store