Sunday, July 19, 2015

Symfony - logout target is not working

Make sure the logout: true line that described in FOSUserBundle document has been replaced with:

# vim app/config/security.yml

# app/config/security.yml
security:
    firewalls:
        main:
            logout:
                path:   /logout
                target: /home
                invalidate_session: false

No comments: