Skip to content

Commit

Permalink
Fixed fetching sessionId from InputBag
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj committed Apr 18, 2020
1 parent 2460ca5 commit 94f4763
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -97,9 +97,10 @@ public function authenticate(RequestEvent $event)
if (null !== $session) {
$usageIndexValue = $session instanceof Session ? $usageIndexReference = &$session->getUsageIndex() : 0;
$usageIndexReference = PHP_INT_MIN;
$sessionId = $request->cookies->get($session->getName());
$sessionId = $request->cookies->all()[$session->getName()] ?? null;
$token = $session->get($this->sessionKey);

// sessionId = true is used in the tests
if ($this->sessionTrackerEnabler && \in_array($sessionId, [true, $session->getId()], true)) {
$usageIndexReference = $usageIndexValue;
} else {
Expand Down

0 comments on commit 94f4763

Please sign in to comment.