mirror of
https://github.com/Neetpone/ponepaste.git
synced 2025-03-12 06:30:07 +01:00
fix: set session cookie params at the right moment
This commit is contained in:
parent
a0ba42e1b5
commit
721ed11a45
1 changed files with 1 additions and 1 deletions
|
@ -221,8 +221,8 @@ function verifyCsrfToken($token = null) : bool {
|
||||||
return hash_equals($_SESSION[SessionHelper::CSRF_TOKEN_KEY], $token);
|
return hash_equals($_SESSION[SessionHelper::CSRF_TOKEN_KEY], $token);
|
||||||
}
|
}
|
||||||
|
|
||||||
session_start();
|
|
||||||
session_set_cookie_params(86400);
|
session_set_cookie_params(86400);
|
||||||
|
session_start();
|
||||||
|
|
||||||
/* Set up the database and Eloquent ORM */
|
/* Set up the database and Eloquent ORM */
|
||||||
$capsule = new Capsule();
|
$capsule = new Capsule();
|
||||||
|
|
Loading…
Add table
Reference in a new issue