Decouple session from csrf handler, set initial lastActivity

This commit is contained in:
billz
2025-01-20 00:55:21 -08:00
parent 866d8eb5b0
commit c51b520b8d
3 changed files with 6 additions and 1 deletions

View File

@@ -3,3 +3,8 @@
if (session_status() == PHP_SESSION_NONE) {
session_start();
}
if (!isset($_SESSION['lastActivity'])) {
$_SESSION['lastActivity'] = time();
}