mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Keepalive
- Fix directory path - Remove duplicate file - Add to client portal
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
// Keep PHP sessions alive
|
||||
// Sends requests to keepalive.php in the background every 10 mins to prevent PHP garbage collection ending sessions
|
||||
// Sends requests to keepalive.php in the background every 8 mins to prevent PHP garbage collection ending sessions
|
||||
|
||||
function keep_alive() {
|
||||
|
||||
//Send a GET request to keepalive.php as keepalive.php?keepalive
|
||||
jQuery.get(
|
||||
"keepalive.php",
|
||||
"/keepalive.php",
|
||||
{keepalive: 'true'},
|
||||
function(data) {
|
||||
// Don't care about a response
|
||||
@@ -14,5 +14,5 @@ function keep_alive() {
|
||||
|
||||
}
|
||||
|
||||
// Run every 10 mins
|
||||
setInterval(keep_alive, 600000);
|
||||
// Run every 8 mins
|
||||
setInterval(keep_alive, 480000);
|
||||
|
||||
Reference in New Issue
Block a user