mirror of
https://github.com/hyzendust/freedoms4-backend-public.git
synced 2026-09-19 02:33:04 +02:00
Fix: auto-logout sessions + another minor hardening
This commit is contained in:
@@ -218,6 +218,7 @@ function xmpp_delete_backup(string $username): void {
|
||||
|
||||
// ── Session + admin check ──
|
||||
if (session_status() === PHP_SESSION_NONE) {
|
||||
ini_set('session.gc_maxlifetime', (string) SESSION_TTL);
|
||||
session_name(SESSION_NAME);
|
||||
session_set_cookie_params([
|
||||
'lifetime' => 0,
|
||||
|
||||
Reference in New Issue
Block a user