How do I create and access Symfony 2 session variables in my controllers. I used like this.
$session = new Session(); $session->start(); $session->set(\'lo
One way of using Sessions in Symfony in controller is:
setting:
$this->get('session')->set('loginUserId', $user['user_id']);
getting:
$this->get('session')->get('loginUserId');
If you use standard framework edition