Merge commit 'refs/pull/507/head' of github.com:camptocamp/odoo-cloud-platform into merge-branch-3606-343_fix_filestore_usage-bdf5ca8b

This commit is contained in:
jcoux
2025-11-27 09:47:44 +01:00
+4
View File
@@ -96,6 +96,10 @@ class RedisSessionStore(SessionStore):
"utf-8"
)
if self.redis.set(key, data):
if type(expiration) != int:
expiration = DEFAULT_SESSION_TIMEOUT_ANONYMOUS
if expiration == 0:
expiration = DEFAULT_SESSION_TIMEOUT_ANONYMOUS
return self.redis.expire(key, expiration)
def delete(self, session):