Update src/Symfony/Bundle/FrameworkBundle/EventListener/TestSessionListener.php
This commit is contained in:
parent
223d187abc
commit
3ef377b6c3
@ -52,6 +52,8 @@ class TestSessionListener implements EventSubscriberInterface
|
|||||||
|
|
||||||
if ($cookies->has($session->getName())) {
|
if ($cookies->has($session->getName())) {
|
||||||
$session->setId($cookies->get($session->getName()));
|
$session->setId($cookies->get($session->getName()));
|
||||||
|
} else {
|
||||||
|
$session->migrate(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user