Commit e1d6673d authored by Fabien Potencier's avatar Fabien Potencier

removed the auto-starting of the session when a previous session exists as the...

removed the auto-starting of the session when a previous session exists as the session is now always auto-started
parent d27a20b2
......@@ -73,13 +73,7 @@ class SessionServiceProvider implements ServiceProviderInterface
public function onEarlyKernelRequest(GetResponseEvent $event)
{
$request = $event->getRequest();
$request->setSession($this->app['session']);
// starts the session if a session cookie already exists in the request...
if ($request->hasPreviousSession()) {
$request->getSession()->start();
}
$event->getRequest()->setSession($this->app['session']);
}
public function onKernelRequest(GetResponseEvent $event)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment