mirror of
https://github.com/itflow-org/itflow
synced 2026-03-03 04:14:54 +00:00
Update more broken links from file diretory consolidation and started migrating some js and ajax and css from root to /user /admin etc that pertain to the section
This commit is contained in:
18
user/js/keepalive.js
Normal file
18
user/js/keepalive.js
Normal file
@@ -0,0 +1,18 @@
|
||||
// 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);
|
||||
Reference in New Issue
Block a user