Skip to content

Commit 14b1b4d

Browse files
committed
bug symfony#58002 [Security] Revert stateless check for ContextListener (VincentLanglet)
This PR was merged into the 5.4 branch. Discussion ---------- [Security] Revert stateless check for ContextListener This reverts commit 40341a1. | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #symfony#57851 | License | MIT Closes symfony#57854 Cf symfony#57854 (comment) Commits ------- 188e2d2 Revert stateless check
2 parents b5c42f9 + 188e2d2 commit 14b1b4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Security/Http/Firewall/ContextListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function authenticate(RequestEvent $event)
9595
}
9696

9797
$request = $event->getRequest();
98-
$session = !$request->attributes->getBoolean('_stateless') && $request->hasPreviousSession() && $request->hasSession() ? $request->getSession() : null;
98+
$session = $request->hasPreviousSession() && $request->hasSession() ? $request->getSession() : null;
9999

100100
$request->attributes->set('_security_firewall_run', $this->sessionKey);
101101

0 commit comments

Comments
 (0)