From 682aaab15e49740afcf07f6a00863788f8936007 Mon Sep 17 00:00:00 2001 From: Bart Schuurmans Date: Thu, 16 Nov 2023 17:33:58 +0100 Subject: [PATCH] Session: change cookie lifetime from "until browser is closed" to 14 days --- models/Session.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/models/Session.php b/models/Session.php index 22e0844..625c522 100644 --- a/models/Session.php +++ b/models/Session.php @@ -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! -- 2.46.0