After 1440 seconds of inactivity after logging in, I always log out automatically. I have to log in multiple times a day. Finally, I have time to solve this problem. Take a note:
"Login timeout (1440 seconds of inactivity), please log in again" often appears during use of phpmyadmin, which is very annoying
The workaround is as follows:
Modify php.ini and find
session.gc_maxlifetime = 1440
Just change the value to a larger value, and then make it take effect
Tried it, and it didn't work.
Final solution:
Find phpMyAdmin/libraries/config.default.php file, open, modify
$cfg['LoginCookieValidity'] = 1440;
Modify 1440 to a larger value.
Note: The value of $cfg['LoginCookieValidity'] cannot be greater than the value of session.gc_maxlifetime in php.ini, otherwise "Your PHP configuration parameter session.gc_maxlifetime (external link, English) will appear in phpmyadmin. Cookies are set to expire, so your login session will be valid for a shorter period of time than you set in phpMyAdmin." error.