From b82b4ca35a02c59dbcd357b559fd4ddf266da331 Mon Sep 17 00:00:00 2001 From: Fabian Schieder Date: Mon, 30 Mar 2026 20:04:07 +0200 Subject: [PATCH] Set session cookie parameters for improved security and lifetime management in bootstrap.php --- lib/bootstrap.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/bootstrap.php b/lib/bootstrap.php index 5967b20..ebb5bab 100644 --- a/lib/bootstrap.php +++ b/lib/bootstrap.php @@ -16,6 +16,15 @@ error_reporting(E_ALL); if (session_status() !== PHP_SESSION_ACTIVE) { + // Session-Cookie Lifetime auf 30 Tage setzen + session_set_cookie_params([ + 'lifetime' => 60 * 60 * 24 * 30, // 30 days + 'path' => '/', + 'domain' => '', + 'secure' => false, + 'httponly' => true, + 'samesite' => 'Lax' + ]); session_start(); }