I have been following this tutorial to manage my users : http://symfony.com/doc/current/book/security.html
Now, I would like to set a flash message after the login has succeeded OR if somebody attempts to access a forbidden area.
What I understand is that authentication and authorization are not managed inside controllers. As a consequence, I do not know where to put my code to display a simple "Sorry, you are not connected" message.
Thanks alot !