Inactive Sessions Timeout
by ACSONE SA/NV https://github.com/OCA/server-auth , Dhinesh D https://github.com/OCA/server-auth , Jesse Morgan https://github.com/OCA/server-auth , LasLabs https://github.com/OCA/server-auth , Odoo Community Association (OCA) https://github.com/OCA/server-authAvailability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 114 |
Technical Name |
auth_session_timeout |
License | AGPL-3 |
Website | https://github.com/OCA/server-auth |
Versions | 16.0 10.0 12.0 15.0 9.0 11.0 13.0 14.0 |
Inactive Sessions Timeout
This module was written to be able to kill(logout) all inactive sessions since a given delay. On each request the server checks if the session is yet valid regarding the expiration delay. If not a clean logout is operated.
Table of contents
Configuration
Two system parameters are available:
- inactive_session_time_out_delay: validity of a session in seconds (default = 2 Hours)
- inactive_session_time_out_ignored_url: technical urls where the check does not occur
Usage
Setup the session parameters as described above.
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Authors
- ACSONE SA/NV
- Dhinesh D
- Jesse Morgan
- LasLabs
Contributors
- Cédric Pigeon <cedric.pigeon@acsone.eu>
- Dhinesh D <dvdhinesh.mail@gmail.com>
- Jesse Morgan <jmorgan.nz@gmail.com>
- Dave Lasley <dave@laslabs.com>
- Nadia Afakrouch <nadia.afa@gmail.com>
- Chandresh Thakkar <cthakkar@opensourceintegrators.com>
Maintainers
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
This module is part of the OCA/server-auth project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedNot working in Odoo 14
Tried different configurations, and does not work.
inactive_session_time_out_delay: 60
Left it for a couple of mins idle -> nothing happened: pressed F5 and the client is still logged in.
Cheers
not working in odoo-14
Not Working
the module isn't working for version v14.
Unstable behaviour
Hi.
I've been using this module for a few months now and I noticed that it doesn't work as expected.
For example, I set the session timeout time to 1800 seconds (30 minutes) and leave the session inactive for hours and sometimes when I go back, the session is expired and sometimes it's not. The problem happens most in the portal side. Actually the session rarely expires for portal users or backoffice users that are using the website.
Sometimes I leave the session inactive from one day to the other and the session is not expired.
For me, the lack of sessions management on Odoo is a big issue and I thought that this module would help me at least address the inactive sessions issue, but unfortunately, as I said above, the behaviour is unstable and on the website it just doesn't work.
Are you aware of these issues?
I'll be waiting for your feedback.
Best regards,
Jerson Figueiredo
Even though timing was setup to 6000 seconds clients are sometimes (not always) still active after this set time.
I'll investigate some more.