mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-08-10 15:21:22 +02:00
extend admin auth cookie lifetime from session-only to 1 week (604800s)
This commit is contained in:
@@ -30,7 +30,7 @@ class AdminAuth
|
||||
}
|
||||
// Harden session cookie (item #8)
|
||||
session_set_cookie_params([
|
||||
'lifetime' => 0,
|
||||
'lifetime' => 604800,
|
||||
'path' => '/admin',
|
||||
'secure' => (php_sapi_name() !== 'cli-server'),
|
||||
'httponly' => true,
|
||||
|
||||
Reference in New Issue
Block a user