This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Displaying flash messages after login/logout

New topics about Symfony 2 should go here

Displaying flash messages after login/logout

by Le Barde » Fri Jun 05, 2015 3:48 pm

Hello there,

I have been following this tutorial to manage my users :
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 !
Le Barde.
Le Barde
Junior Member
Posts: 16
Joined: Thu Jun 02, 2011 4:04 pm