Skip to content

Commit

Permalink
Update src/Symfony/Bundle/FrameworkBundle/EventListener/TestSessionLi…
Browse files Browse the repository at this point in the history
…stener.php
  • Loading branch information
guilhermeblanco committed May 29, 2012
1 parent adf07f1 commit 3ad01c0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ public function onKernelRequest(GetResponseEvent $event)

$session = $this->container->get('session');
$cookies = $event->getRequest()->cookies;

if ($cookies->has($session->getName())) {
$session->setId($cookies->get($session->getName()));
} else {
$session->setId('');
}
}

Expand Down

0 comments on commit 3ad01c0

Please sign in to comment.