Set timeout keepalive to fire every (admin_timeout / 2) seconds

This commit is contained in:
Flavio Copes
2015-09-14 16:25:03 +02:00
parent 026a7934c6
commit 6db6c5cdba

View File

@@ -521,6 +521,6 @@ $(function () {
// Keep-alive // Keep-alive
setInterval(function() { setInterval(function() {
keepAlive(); keepAlive();
}, GravAdmin.config.admin_timeout*1000 - 60*1000); //Call keepAlive() 60s before the admin session timeouts }, (GravAdmin.config.admin_timeout/2)*1000); //Call keepAlive() 60s before the admin session timeouts
}); });