config/packages/framework.yaml

Open in your IDE?
  1. # see https://symfony.com/doc/current/reference/configuration/framework.html
  2. framework:
  3.     secret: '%env(APP_SECRET)%'
  4.     #csrf_protection: true
  5.     http_method_override: false
  6.     # Enables session support. Note that the session will ONLY be started if you read or write from it.
  7.     # Remove or comment this section to explicitly disable session support.
  8.     session:
  9.         handler_id: null
  10.         cookie_secure: false
  11.         cookie_samesite: lax
  12.         storage_factory_id: session.storage.factory.native
  13.     #esi: true
  14.     #fragments: true
  15.     php_errors:
  16.         log: true
  17. when@test:
  18.     framework:
  19.         test: true
  20.         session:
  21.             storage_factory_id: session.storage.factory.mock_file