My Symfony2 application displays the main page, and from there it mainly uses AJAX requests to display content to the user through modals.
I noticed that after the user has been idle for some time (about 15-30 minutes), the session is destroyed, and the user logs out and he needs to log in again. This is incredibly difficult since I cannot expect users to log in every time they are idle for several minutes.
As far as I can tell, this problem should not occur according to my file config.yml, which looks like this:
framework:
session:
cookie_lifetime: 0
gc_maxlifetime: 28800
handler_id: ~
For completeness, my current environment is as follows:
- Symfony 2.4.8
- PHP 5.4
- : (
php.ini) - Ubuntu Server 12.10
:
?