mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-11-09 19:20:09 +01:00
extend admin auth cookie lifetime from session-only to 1 week (604800s)
This commit is contained in:
1 parent
22a49f7cb6
commit
56b3feb73f
2 files changed
+2
-1
No files matched your search
@@ -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