session keep alive

This commit is contained in:
2026-09-05 13:41:26 +02:00
parent d9d6a7ab58
commit 34f7490e94
5 changed files with 105 additions and 1 deletions
+9 -1
View File
@@ -56,4 +56,12 @@ $photousername = basename($avatar);
//include files
require_once(__DIR__ . '/../../languages/en/general.php');
//include("generalsettings.php");
//include("generalsettings.php");
// Timbra la sessione dell'utente a ogni pagina (rolling manuale)
try {
$pdoSess = DBHandlerSelect::getInstance()->getConnection();
$pdoSess->prepare("UPDATE auth_sessions SET last_activity = ? WHERE user_id = ? ORDER BY last_activity DESC LIMIT 1")
->execute([time(), $iduserlogin]);
} catch (\Throwable $e) { /* non bloccare la pagina */
}