Did you start the session before use it :) ?

$session = $container->getSessionService();
$session->start();

you can check miam application as example.

On 20 Сер, 05:15, Michael <excelwebz...@gmail.com> wrote:
> I created a class for UserSecurity which extends the Symfony\Components
> \HttpFoundation\Session. Then i use 
> $this->session->setAttribute('isAuthenticated', true); to tell the code that 
> the user
>
> is logged-in. but it doesn't store it in the session. Any ideas why?
> do I have to run something after I set an attribute?

-- 
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 users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to