File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ public function onKernelResponse(ResponseEvent $event)
151
151
$ request = $ event ->getRequest ();
152
152
$ requestSessionCookieId = $ request ->cookies ->get ($ sessionName );
153
153
154
- $ isSessionEmpty = ($ session instanceof Session ? $ session ->isEmpty () : empty ( $ session ->all () )) && empty ($ _SESSION ); // checking $_SESSION to keep compatibility with native sessions
154
+ $ isSessionEmpty = ($ session instanceof Session ? $ session ->isEmpty () : ! $ session ->all ()) && empty ($ _SESSION ); // checking $_SESSION to keep compatibility with native sessions
155
155
if ($ requestSessionCookieId && $ isSessionEmpty ) {
156
156
// PHP internally sets the session cookie value to "deleted" when setcookie() is called with empty string $value argument
157
157
// which happens in \Symfony\Component\HttpFoundation\Session\Storage\Handler\AbstractSessionHandler::destroy
You can’t perform that action at this time.
0 commit comments