1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Add support for logoutOnIdleSessionTimeout

This commit is contained in:
Martin Mädler 2025-02-11 14:51:52 +01:00
parent 9fd40751b2
commit 6648a2e12c
7 changed files with 32 additions and 5 deletions

View file

@ -2447,7 +2447,9 @@
files.Stop();
files = null;
}
window.location.href = 'logout';
if (serverinfo.logoutOnIdleSessionTimeout) {
window.location.href = 'logout';
}
} else {
var ds = Math.round((serverinfo.timeout - delta) / 1000);
if (ds <= 60) {