I am developing an web application in symfony2. I have implemented login and logout using the symfony2 core security.
I have used userinterface for authentication/authorization.
Now I want to check a condition in the login action, if user is all ready loged in then redirect to the user dashboard.
Can anyone please suggest me how to do that?
Here is one of the ways to do it: