# config/framework.yaml
framework:
    secret: '%iak_secret%'

    profiler: { only_exceptions: false }

    session:
        # enables the support of sessions in the app
        enabled: true
        # ID of the service used for session storage.
        # NULL means that Symfony uses PHP default session mechanism
        handler_id: null
        # improves the security of the cookies used for sessions
        cookie_secure: 'auto'
        cookie_samesite: 'lax'

        # configure session lifetime
        cookie_lifetime: 604800  # Cookie is valid for 7 days (604800 seconds)
