mirror of https://github.com/itflow-org/itflow
Keepalive
- Fix directory path - Remove duplicate file - Add to client portal
This commit is contained in:
parent
50f790dd6c
commit
ca6a903b8f
|
|
@ -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);
|
||||
|
|
@ -68,3 +68,5 @@
|
|||
<script src="../js/pretty_content.js"></script>
|
||||
|
||||
<script src="../js/confirm_modal.js"></script>
|
||||
|
||||
<script src="../js/keepalive.js"></script>
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
// Keep PHP sessions alive
|
||||
// Receives requests via AJAX in the background every 10 mins to prevent PHP garbage collection ending sessions
|
||||
// Receives requests via AJAX in the background every 8 mins to prevent PHP garbage collection ending sessions
|
||||
// See footer.php & js/keepalive.js
|
||||
|
||||
session_start();
|
||||
|
|
|
|||
Loading…
Reference in New Issue