From b47e674aa7422bf33f27d7d6ec186f06db4457f3 Mon Sep 17 00:00:00 2001 From: Simon L Date: Mon, 7 Nov 2022 19:44:02 +0100 Subject: [PATCH] session should not get cleared automatically before 24h Signed-off-by: Simon L --- php/public/index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/php/public/index.php b/php/public/index.php index 3829017a..d469264b 100644 --- a/php/public/index.php +++ b/php/public/index.php @@ -22,6 +22,9 @@ ini_set('session.save_path', $dataConst->GetSessionDirectory()); // Auto logout on browser close ini_set('session.cookie_lifetime', '0'); +# Keep session for 24h max +ini_set('session.gc_maxlifetime', '86400'); + // Create app AppFactory::setContainer($container); $app = AppFactory::create();