0

I am having a sessions issue that results "Failed to start the session: already started by PHP.". As a temporary workaround, I wan't to disable CSRF protection globally, including FOSUserBundle. How can I do this?

tatsuhirosatou
  • 25,149
  • 14
  • 39
  • 40

1 Answers1

3

try this available at doc :

framework:
    csrf_protection:
        enabled:   false

and if you need to disable it also in login form you just go to your security.yml file and remove the csrf_provider from the form_login directive, don't need to update the action class or anything.

T. Abdelmalek
  • 418
  • 3
  • 10