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!