Pad session timeout warning by 10 seconds, to account for drift
This commit is contained in:
parent
cf8df76788
commit
37a9153c4d
|
@ -140,8 +140,9 @@ function timeout_warning_update() {
|
||||||
* Warn user of impending session timeout.
|
* Warn user of impending session timeout.
|
||||||
*/
|
*/
|
||||||
function set_timeout_warning_timer() {
|
function set_timeout_warning_timer() {
|
||||||
// TODO: are we calculating timer ok here? (effective timeout - 60 seconds)
|
// timout dialog says we're 60 seconds away, but we actually trigger when
|
||||||
window.setTimeout(timeout_warning, session_timeout * 1000 - 60000);
|
// 70 seconds away from supposed timeout, in case of timer drift?
|
||||||
|
window.setTimeout(timeout_warning, session_timeout * 1000 - 70000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue