Skip to Content
Menu
This question has been flagged
1 Reply
1867 Views

Hi,
I need to know about the session expiry details of odoo. I mean when a user logged in, after how much time that session will expire in default ?  Is there a way to configure the session expiry time ?
Any suggestions will highly appreciated.

Thanks

Avatar
Discard
Best Answer

Hi,

See this function inside this file /13.0/odoo/odoo/http.py .


def session_gc(session_store):
if random.random() < 0.001:
# we keep session one week
last_week = time.time() - 60*60*24*7
for fname in os.listdir(session_store.path):
path = os.path.join(session_store.path, fname)
try:
if os.path.getmtime(path) < last_week:
os.unlink(path)
except OSError:
pass

Thanks

Avatar
Discard