Keepalive

- Fix directory path
- Remove duplicate file
- Add to client portal
This commit is contained in:
wrongecho
2025-09-24 08:39:45 +01:00
parent 50f790dd6c
commit ca6a903b8f
4 changed files with 7 additions and 23 deletions

View File

@@ -1,18 +0,0 @@
// Keep PHP sessions alive
// Sends requests to keepalive.php in the background every 10 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: 'true'},
function(data) {
// Don't care about a response
}
);
}
// Run every 10 mins
setInterval(keep_alive, 600000);