symfony Время работы актуальности сессии (куков)
Primary tabs
Если значение не установлено - берется из php.ini, переопределить можно в конфиге (/config/packages/framework.yaml), напр, так (см. cookie_lifetime, установлено 5 секунд ):
framework: secret: '%env(APP_SECRET)%' #csrf_protection: true #http_method_override: true # Enables session support. Note that the session will ONLY be started if you read or write from it. # Remove or comment this section to explicitly disable session support. session: handler_id: null cookie_secure: auto cookie_samesite: lax cookie_lifetime: 5
Документация: https://symfony.com/doc/current/referenc...
- Log in to post comments
- 1147 reads