phpMyAdmin timeout after 1440 seconds

I keep getting this timeout error from phpmyadmin: “No activity within 1440 seconds; please log in again“. @#%@#$@$@ So I decided to change that setting. Open up your file and add the following line: (If you don’t have, copy from

$cfg['Servers'][$i]['LoginCookieValidity'] = 60 * 60 * 12;

The above setting sets the timeout value to 12 hours in phpMyAdmin.

If your server crashed and cannot load your phpmyadmin page, check your apache log at /var/log/apache2/error.log. If you got PHP Fatal error: Call to a member function get() on a non-object in /path/to/phpmyadmin/libraries/Header.class.php on line 135, then do a chmod 644 that should take care of the error.

You will then get another warning: “Your PHP parameter session.gc_maxlifetime is lower that cookie validity configured in phpMyAdmin, because of this, your login will expire sooner than configured in phpMyAdmin.“. That makes sense because php’s session will time out first anyways. So we will need to change /etc/php.ini .

session.gc_maxlifetime = 43200

That’s 12 hours in seconds. Restart your apache server and you are done!

10 thoughts on “phpMyAdmin timeout after 1440 seconds

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s