'How do I logout inactive users session in odoo14?
'''odoo''' this is the odoo http.py file where i try to modify the code for session logout def session_gc(session_store): if random.random() < 0.001: ###!!! 0.001: # we keep session one week last_week = time.time() - 601 ###!!! 6060247 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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
