In an older post here i wrote about changing the session lifetime in phpmyadmin so that I did not have to login every 30 minutes or so. It worked a bit but stopped to work after some time.
When I upgraded to a new veriosn 9.10. I actually got a warning from phpmyadmin.
To fix the logout problem i added the following line to /etc/phpmyadmin/config.inc.php file:
1 |
$cfg['LoginCookieValidity'] = 3600 * 4; // 4 hours |
This will set the valid time for login to 4 hours – that shoud be ok for me atleast. But that exseeds the max time for a cookie in php so you have to make a change to php.ini also. Change /etc/php5/apache2/php.ini with the command:
1 |
sudo vi /etc/php5/apache2/php.ini |
and add/change the line
1 |
session.gc_maxlifetime |
to
1 |
session.gc_maxlifetime = 14400 |
This will set it to teh same as the phpmyadmin cookie validity and it will now work.