Increase the phpMyAdmin session timeout

Edit your config.inc.php file (in my Ubuntu 12.04 it was located at /etc/phpmyadmin/config.inc.php) and add the following line (where X is the amount of seconds the session will last):

$cfg['LoginCookieValidity'] = X;

phpmyadmin-login

In my development machine I have 36000 that is 10 hours (all work day) but you should never do this in a production environment.

You may also have to set the same value on session.gc_maxlifetime in your php.ini file because it will probably be smaller than LoginCookieValidity value you set before (it’s default value is 1440).

session.gc_maxlifetime = 36000

gc_maxlifetime

Ref: http://venutip.com/content/increase-phpmyadmin-session-timeout

You might also like

Fix “Class ‘PMA_Message’ not found” in phpMyAdmin with nginx + PHP_FPM
After updating phpMyAdmin I got this error:PHP message: PHP Fatal error: Class 'PMA_Message' not...

Fix “Configuration of pmadb… not OK” in phpMyAdmin
You may get this message in pmpMyAdmin:To fix this you have to import/create the phpmyadmin database...

Apache 2 + MySQL 5 + PHP 5.3 + phpMyAdmin 3.5.4 installation script for Mac OS X using MacPorts
Based on the instructions provided by Gilles Fabio I've created a complete installation script to install...

Solve “The Alias directive in … will probably never match because ir overlaps an earlier Alias”
This is a warning that happens when starting Apache2.$ sudo service apache2 restart * Restarting...

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.