Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase the session timeout in Symfony

I would like to know how to increase the session timeout in symfony. Is it enough to only adjust the symfony configuration settings or must I also configure anything in my php.ini file?

like image 287
Rui Gonçalves Avatar asked Mar 02 '10 15:03

Rui Gonçalves


1 Answers

For Symfony 2.0.x

framework:
    session:
        lifetime: 43200  #time in seconds

For Symfony >= 2.1.0

framework:
    session:
        cookie_lifetime: 43200  #time in seconds
like image 95
greg Avatar answered Sep 25 '22 18:09

greg