Skip to content

Commit

Permalink
simplified code
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed May 24, 2018
1 parent b46fc93 commit 42bc43f
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -192,9 +192,6 @@ private function migrateSession(Request $request)
if (!$request->hasSession() || !$request->hasPreviousSession()) {
return;
}
// Destroying the old session is broken in php 5.4.0 - 5.4.10
// See https://bugs.php.net/63379
$destroy = \PHP_VERSION_ID < 50400 || \PHP_VERSION_ID >= 50411;
$request->getSession()->migrate($destroy);
$request->getSession()->migrate(true);
}
}

0 comments on commit 42bc43f

Please sign in to comment.