Reputation: 8663
There is Symfony 4 app with PdoSessionHandler where session duration is supposed to be 10 hours eg 36000 seconds.
framework.yaml has: cookie_lifetime: 86400
php.ini has: session.gc_maxlifetime 36000
However sess_lifetime
in sessions
table is still 1440.
How to make sure that session lifetime would be 10 hours?
Upvotes: 3
Views: 1163
Reputation: 8663
Turned out that framework.yaml
had another parameter that was overwriting php.ini
value.
Changing this value helped:
framework:
session:
gc_maxlifetime: 36000
See https://symfony.com/doc/current/reference/configuration/framework.html#gc-maxlifetime
Upvotes: 3