Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 42bc43f

Browse files
committed
simplified code
1 parent b46fc93 commit 42bc43f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,6 @@ private function migrateSession(Request $request)
192192
if (!$request->hasSession() || !$request->hasPreviousSession()) {
193193
return;
194194
}
195-
// Destroying the old session is broken in php 5.4.0 - 5.4.10
196-
// See https://bugs.php.net/63379
197-
$destroy = \PHP_VERSION_ID < 50400 || \PHP_VERSION_ID >= 50411;
198-
$request->getSession()->migrate($destroy);
195+
$request->getSession()->migrate(true);
199196
}
200197
}

0 commit comments

Comments
 (0)