How to modify the default login timeout in phpmyadmin

  • 2020-06-19 10:02:05
  • OfStack

I have to log in many times a day. Finally I have time to solve this problem. I think session timed out.
phpmyadmin is annoying in that it often appears "login timeout (1440 seconds inactive), please login again"
The solution is as follows:
Modify php. ini, find
session.gc_maxlifetime = 1440
Just make it bigger and make it work
We tried one, and the results were not good.
Final solution:
Find the phpMyAdmin/libraries/config.default.php file, open it, and modify it
$cfg['LoginCookieValidity'] = 1440;
Change 1440 to a larger value.

Note: the value of $cfg['LoginCookieValidity'] cannot be greater than the value of ES29en.gc_ES31en in ES27en.ini, otherwise "your PHP configuration parameter session.gc_ES36en is shorter than the Cookies period you set in phpMyAdmin, so your login session will have a shorter period of time than the period you set in phpMyAdmin." Error.


Related articles: