Fixed fetching sessionId from InputBag
This commit is contained in:
parent
2460ca59af
commit
94f47630ba
@ -97,9 +97,10 @@ class ContextListener extends AbstractListener
|
||||
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 {
|
||||
|
Reference in New Issue
Block a user