fix: set session cookie params at the right moment

This commit is contained in:
Floorb 2023-08-08 00:38:59 -04:00
parent a0ba42e1b5
commit 721ed11a45

View file

@ -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();