Resolves how to modify the default login timeout in PHP myadmin

Source: Internet
Author: User
Tags ini php file phpmyadmin myadmin

Login after 1440 seconds after inactivity always automatically quit, one day to log on several times, finally have time to solve this problem, the feeling is the session timeout, the results in the online search, find a solution, hahaha, here to make a note:
phpMyAdmin often appear during the use of "login timeout (1440 seconds inactive), please login again", very annoying
The workaround is as follows:
Modify PHP.ini, find
session.gc_maxlifetime = 1440
change the value to a large number and then bring it into effect.
The experiment did not do the result.
Final Solution:
Find phpmyadmin/libraries/config.default.php file, open, modify
$cfg [' logincookievalidity '] = 1440;
Modify the 1440 to a larger value.

Note:the value of $cfg [' logincookievalidity '] cannot be greater than the value of session.gc_maxlifetime in php.ini, or phpMyAdmin will appear "Your PHP configuration parameter Session.gc_maxlifetime (outside of the chain, English) is shorter than the duration of the Cookies you set up in phpMyAdmin, so your logon session will be valid for a shorter period than the time you set up in phpMyAdmin. Error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.