Permalink
Browse files

merged branch guilhermeblanco/patch-6 (PR #4456)

Commits
-------

3ef377b Update src/Symfony/Bundle/FrameworkBundle/EventListener/TestSessionListener.php

Discussion
----------

Update src/Symfony/Bundle/FrameworkBundle/EventListener/TestSessionListener.php

Better patch for initialization/regeneration of id of already started session

---------------------------------------------------------------------------

by travisbot at 2012-05-30T05:31:15Z

This pull request [passes](http://travis-ci.org/symfony/symfony/builds/1474248) (merged 3ef377b into 223d187).
  • Loading branch information...
2 parents 223d187 + 3ef377b commit 6c527b62821af4b734db4ddb96e019905ba6aed5 @fabpot fabpot committed May 30, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/Symfony/Bundle/FrameworkBundle/EventListener/TestSessionListener.php
@@ -52,6 +52,8 @@ public function onKernelRequest(GetResponseEvent $event)
if ($cookies->has($session->getName())) {
$session->setId($cookies->get($session->getName()));
+ } else {
+ $session->migrate(false);
}
}

0 comments on commit 6c527b6

Please sign in to comment.