Home > Backend Development > PHP Tutorial > Analyze how to modify the default login timeout in phpmyadmin_PHP tutorial

Analyze how to modify the default login timeout in phpmyadmin_PHP tutorial

WBOY
Release: 2016-07-21 15:03:10
Original
729 people have browsed it

After 1440 seconds of inactivity after logging in, I always log out automatically. I have to log in multiple times a day. I finally have time to solve this problem. I feel that the session has timed out. I searched online and found a solution. Hahaha , make a note here:
During use of phpmyadmin, "Login timeout (1440 seconds of inactivity), please log in again" often occurs, which is very annoying
The solution 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
I tried it, but the result didn’t work.
Final solution:
Find the phpMyAdmin/libraries/config.default.php file, open it, and modify it
$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 parameters" will appear in phpmyadmin session.gc_maxlifetime (external link, English) is shorter than the cookie validity period you set in phpMyAdmin, so the validity period of your login session will be shorter than the time you set in phpMyAdmin." error.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/327857.htmlTechArticleAfter 1440 seconds of inactivity after logging in, it always logs out automatically. I have to log in multiple times a day. I finally have time to solve it. I have this problem. It feels like the session has timed out. I searched online and found the solution...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template