dudi/config/packages/framework.yaml
Simon Kühn ccd05b1660 Extend session lifetime to 7 days
Overrides PHP's default session.gc_maxlifetime (typically 1h on servers)
so sessions survive inactivity without relying on remember-me.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-11 22:23:38 +02:00

18 lines
473 B
YAML

# see https://symfony.com/doc/current/reference/configuration/framework.html
framework:
secret: '%env(APP_SECRET)%'
# Note that the session will be started ONLY if you read or write from it.
session:
gc_maxlifetime: 604800
cookie_lifetime: 604800
cookie_samesite: 'lax'
#esi: true
#fragments: true
when@test:
framework:
test: true
session:
storage_factory_id: session.storage.factory.mock_file