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

Analyze how to modify the default login timeout in php myadmin_PHP tutorial

WBOY
Release: 2016-07-20 11:17:15
Original
895 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:
When using phpmyadmin, "Login timeout (1440 seconds of inactivity), please log in again" often appears, 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 it didn't work.
Final solution:
Find the phpMyAdmin/libraries/config.default.php file, open it, and modify it
$cfg['LoginCookieValidity'] = 1440;
Just change 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" will appear in phpmyadmin (external link , in English) is shorter than the cookie validity period you set in phpMyAdmin, so your login session will be valid for a shorter period than the time you set in phpMyAdmin." error.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/372058.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