Browse Source

Longer session lifetime

imwald
Nuša Pukšič 2 weeks ago
parent
commit
39c72dd946
  1. 2
      config/packages/framework.yaml

2
config/packages/framework.yaml

@ -8,7 +8,7 @@ framework:
handler_id: Symfony\Component\HttpFoundation\Session\Storage\Handler\RedisSessionHandler handler_id: Symfony\Component\HttpFoundation\Session\Storage\Handler\RedisSessionHandler
cookie_secure: auto cookie_secure: auto
cookie_samesite: lax cookie_samesite: lax
cookie_lifetime: 2678400 # integer, lifetime in seconds, 0 means 'valid for the length of the browser session' cookie_lifetime: 0 # Session cookie will expire when the browser is closed
trusted_proxies: '%env(TRUSTED_PROXIES)%' trusted_proxies: '%env(TRUSTED_PROXIES)%'
trusted_headers: ['forwarded', 'x-forwarded-for', 'x-forwarded-proto'] trusted_headers: ['forwarded', 'x-forwarded-for', 'x-forwarded-proto']
# trusted_proxies: '%env(TRUSTED_PROXIES)%' # trusted_proxies: '%env(TRUSTED_PROXIES)%'

Loading…
Cancel
Save