symfonycookieless

Making Symfony 2 project cookieless


I am trying to make Symfony 2 project cookieless as I have no requirement for cookies on my site.


Solution

  • Enable stateless firewall to disable cookies.

    # app/config/security.yml
    security:
        firewalls:
            main:
                stateless:  true
    

    Further documentation here.