DEV Community

Cover image for How to Handle Automatic Logout Due to Inactivity in MySQL
Arman Rahman
Arman Rahman

Posted on

How to Handle Automatic Logout Due to Inactivity in MySQL

ERROR:

You have been automatically logged out due to inactivity of 1440 seconds. Once you log in again, you should be able to resume the work where you left off.

Follow these Steps:

Add this line to /config.inc.php:

$cfg['LoginCookieValidity'] = 36000;
Enter fullscreen mode Exit fullscreen mode

In /setup/lib/index.lib.php

$cf->getValue('LoginCookieValidity') > 36000;
Enter fullscreen mode Exit fullscreen mode

If you don't already have a .htaccess file for your phpMyAdmin site, create one, and add the following line to override the default PHP session timeout:

php_value session.gc_maxlifetime 36000
Enter fullscreen mode Exit fullscreen mode

Top comments (0)