mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-23 18:04:34 +00:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user