# see https://symfony.com/doc/current/reference/configuration/framework.html framework: secret: '%env(APP_SECRET)%' #csrf_protection: true # Note that the session will be started ONLY if you read or write from it. session: handler_id: Symfony\Component\HttpFoundation\Session\Storage\Handler\RedisSessionHandler cookie_secure: auto cookie_samesite: lax cookie_lifetime: 0 # Session cookie will expire when the browser is closed trusted_proxies: '%env(TRUSTED_PROXIES)%' trusted_headers: ['forwarded', 'x-forwarded-for', 'x-forwarded-proto'] # trusted_proxies: '%env(TRUSTED_PROXIES)%' #trusted_proxies: 'symfony,REMOTE_ADDR' #esi: true #fragments: true when@test: framework: test: true session: storage_factory_id: session.storage.factory.mock_file