Skip to content
Snippets Groups Projects
Commit d8856ec4 authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Fix PHP sessions always throwing an exception.

Incorrectly refactored in eb204573
parent da55939e
No related branches found
No related tags found
No related merge requests found
......@@ -224,7 +224,7 @@ class SessionHandlerPHP extends SessionHandler
*/
public function loadSession(string $sessionId = null): ?Session
{
if ($sessionId !== null) {
if ($sessionId !== session_id()) {
throw new Error\Exception('Cannot load PHP session with a specific ID.');
} elseif (session_id() === '') {
$this->getCookieSessionId();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment