In my Symfony 3.4 application, the user is automatically logged out after a certain period of time. I want to change this behaviour and make my application never log out automatically. It should log out the session only when the user clicks on the logout link.
I have read the documentation and tried by setting the cookie_lifetime but it is not working for me. If anybody worked on this area please suggest how to proceed.
Updates:
I'm using this documentation page http://symfony.com/doc/master/components/http_foundation/session_configuration.html#session-lifetime
I'm using Symfony 3.4 flex based project.
I'm setting the configurations in config/packages/framework.yml. The configurations are as follows:
framework:
session:
handler_id: ~
cookie_lifetime: 31536000
gc_maxlifetime: 31536000
cookie_lifetime
? Did you use this documentation page? symfony.com/doc/current/security/remember_me.html – Leachfirewall
. – Leachremember_me
function, you just wanted that the user is not getting logged out at all, correct? – Leach