Session: change cookie lifetime from "until browser is closed" to 14 days

This commit is contained in:
Bart Schuurmans 2023-11-16 17:33:58 +01:00
parent 202e263ea7
commit 682aaab15e
1 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,9 @@ class Session
{
public static function start()
{
session_set_cookie_params([
'lifetime' => 24 * 3600 * 14 // 14 days
]);
session_start();
// Resuming an existing session? Check what we know!