Xen-Orchestra Auto-Logout
-
Hi!
I want to have an auto-logout in Xen-Orachestra. I can see, that logged-on sessions, that are lasting over days are filling the memory of the XOA VM, until issues are starting.
What I found in your git is:
[authentication] # Default to `maxTokenValidity` #permanentCookieValidity = '30 days' # Default to `undefined`, ie as long as the browser is not restarted # # https://developer.mozilla.org/fr/docs/Web/HTTP/Headers/Set-Cookie#Session_cookie #sessionCookieValidity = '10 hours'
...but I do not really understand the difference between permanentCookieValidity and sessionCookieValidity. Which one do I have to set, to force user logoffs after 12h, when a user does keep the browser open, when leaving the office?
Thank you for your help
KPS -
@KPS this would be for the session, the question I have is what issues are you experiencing?
-
@DustinB
When a browser is open for some days, the process is using more and more memory, until it reaches the memory limit. If nobody is logged in, that is happening much slower.
Currently, my limit is 8GB:When that limit is reached, strange things begin to happen:
- API-requests are timing out
- Backup-jobs are failing
...until the process is restarted.
About the original question:
sessionCookieValidity = '12 hours'
should fit?
-
Hi @KPS ,
The difference between these two settings is that
sessionCookieValidity
determines the time before a user gets disconnected if they did not check the "Remember me" option, andpermanentCookieValidity
determines this when this option was checked.If you want to force users to be disconnected after 12 hours regardless of how they connected, I think you need to set both
sessionCookieValidity = '12 hours'
andpermanentCookieValidity = '12 hours'
.However, this memory increase you're experiencing is intriguing, it is not an intended behaviour.