How to check if an user is logged in Symfony2 inside a controller?
Warning: Checking for ‘IS_AUTHENTICATED_FULLY’ alone will return false if the user has logged in using “Remember me” functionality. According to Symfony 2 documentation, there are 3 possibilities: IS_AUTHENTICATED_ANONYMOUSLY – automatically assigned to a user who is in a firewall protected part of the site but who has not actually logged in. This is only possible … Read more