stage #1

Merged
ThaMunsta merged 351 commits from stage into main 2025-11-10 14:37:21 +00:00
4 changed files with 7 additions and 23 deletions
Showing only changes of commit ca6a903b8f - Show all commits

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);

View File

@@ -68,3 +68,5 @@
<script src="../js/pretty_content.js"></script>
<script src="../js/confirm_modal.js"></script>
<script src="../js/keepalive.js"></script>

View File

@@ -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);

View File

@@ -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();