From 721ed11a45fc59fd6a0167b5702555bab6bba6a3 Mon Sep 17 00:00:00 2001 From: Floorb <132411956+Neetpone@users.noreply.github.com> Date: Tue, 8 Aug 2023 00:38:59 -0400 Subject: [PATCH] fix: set session cookie params at the right moment --- includes/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/common.php b/includes/common.php index 4c538d7..27e4727 100644 --- a/includes/common.php +++ b/includes/common.php @@ -221,8 +221,8 @@ function verifyCsrfToken($token = null) : bool { return hash_equals($_SESSION[SessionHelper::CSRF_TOKEN_KEY], $token); } -session_start(); session_set_cookie_params(86400); +session_start(); /* Set up the database and Eloquent ORM */ $capsule = new Capsule();