mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-05 04:46:03 +01:00
Set timeout keepalive to fire every (admin_timeout / 2) seconds
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user