mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Add background ajax query in an attempt to prevent session timeout
This commit is contained in:
8
keepalive.php
Normal file
8
keepalive.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
// Keep PHP sessions alive
|
||||
// Receives requests via AJAX in the background every 10 mins to prevent PHP garbage collection ending sessions
|
||||
// See footer.php & js/keepalive.js
|
||||
|
||||
session_start();
|
||||
session_write_close();
|
||||
Reference in New Issue
Block a user