Fix consistentie benamingen.

This commit is contained in:
2026-09-11 22:14:50 +02:00
parent deba8463b8
commit 38701bf06a
12 changed files with 1746 additions and 162 deletions
+6
View File
@@ -20,6 +20,12 @@ $now = time();
if ($action === 'keepalive' || $action === 'ping') {
// Verleng de activiteitstimer van de sessie
$_SESSION['last_activity'] = $now;
$_SESSION['last_db_activity_update'] = $now;
try {
$db = get_db_connection();
$stmtAct = $db->prepare("UPDATE users SET last_activity_at = NOW() WHERE id = ?");
$stmtAct->execute([$userId]);
} catch (Throwable $e) {}
echo json_encode([
'success' => true,