In last releases Symfony2 i can't save variable in session
For example:
//controller
class TestsController extends Controller {
/**
* test action
*/
public function indexAction() {
$oSession = $this->get( 'session' );
$oSession->start();
var_dump( $oSession->get( 'test_param' ) );
$oSession->set( 'test_param', 'test_value' );
var_dump( $oSession->get( 'test_param' ) );
return $this->createResponse( '' );
}
}
First var_dump always return null. $_SESSION is empty.
For this reason some third-party bundles is not working
(DoctrineUserBundle, for example). Users can't login.
P.S.: Sorry my english
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en