Update logout redirection logic with key parameter on logoutonidlesessiontimeout (#7379)

This commit is contained in:
TechWorkz
2025-10-25 17:32:06 +08:00
committed by GitHub
parent 751f6a80e5
commit f9bb7315cc
3 changed files with 6 additions and 3 deletions

View File

@@ -1541,7 +1541,8 @@
files = null; files = null;
} }
if (serverinfo.logoutonidlesessiontimeout) { if (serverinfo.logoutonidlesessiontimeout) {
window.location.href = 'logout'; if (urlargs.key) { window.location.href = 'logout?key=' + urlargs.key; }
else { window.location.href = 'logout'; }
} }
} }
} }

View File

@@ -2453,7 +2453,8 @@
files = null; files = null;
} }
if (serverinfo.logoutonidlesessiontimeout) { if (serverinfo.logoutonidlesessiontimeout) {
window.location.href = 'logout'; if (urlargs.key) { window.location.href = 'logout?key=' + urlargs.key; }
else { window.location.href = 'logout'; }
} }
} else { } else {
var ds = Math.round((serverinfo.timeout - delta) / 1000); var ds = Math.round((serverinfo.timeout - delta) / 1000);

View File

@@ -3087,7 +3087,8 @@
files = null; files = null;
} }
if (serverinfo.logoutonidlesessiontimeout) { if (serverinfo.logoutonidlesessiontimeout) {
window.location.href = 'logout'; if (urlargs.key) { window.location.href = 'logout?key=' + urlargs.key; }
else { window.location.href = 'logout'; }
} }
} else { } else {
var ds = Math.round((serverinfo.timeout - delta) / 1000); var ds = Math.round((serverinfo.timeout - delta) / 1000);