I had a problem with symfony2 session component. I set some data to session through session container like this:
$sess = $this->get( \'session\' ); $sess-
To work comfortably you can set in dev environment a cookie_lifetime to 0, it means the cookie expires when the browser is closed.
cookie_lifetime to 0
File: config_dev.php
framework: session: cookie_lifetime: 0