Reputation: 117
I'm using odoo9, I want to log off user if it has spent 5 mins idle time on browser (since last activity)? Any Idea how to do this in odoo 9?
Upvotes: 1
Views: 1990
Reputation: 1841
This would be the better module to manage the inactive session for Odoo-9. Its a free OCA module. Please try this one.
https://www.odoo.com/apps/modules/9.0/auth_session_timeout/
Upvotes: 1
Reputation: 3620
You can use ready-made OCA module auth_session_timeout for this. You can find it at https://github.com/OCA/server-auth/tree/11.0/auth_session_timeout.
Upvotes: 0
Reputation: 2764
This is difficult since Odoo makes ajax request from time to time to do some stuffs like calendar and bus notifications. So first of all you will need to disable the bus js longpolling and after that you could get the logout stuff by using a Session Store like Redis where keys containing Session Information could be destroyed after some time of no update usage.
Upvotes: 0