Home  >  Article  >  Backend Development  >  延长phpmyadmin登录逾期时间的方法

延长phpmyadmin登录逾期时间的方法

WBOY
WBOYOriginal
2016-06-13 13:12:11927browse

延长phpmyadmin登录过期时间的方法

方法1.

phpmyadmin/libraries/config.default.php找到这一行:
$cfg['LoginCookieValidity'] = 1440;
改为
$cfg['LoginCookieValidity'] = 86400; 一天

在上面这行下面添加一行:

ini_set('session.gc_maxlifetime', 86400);

方法2.

phpMyadmin所在的目录下找到“config.inc.php”文件里面的

$cfg['Servers'][$i]['auth_type'] = ‘cookie’;

修改为:

$cfg['Servers'][$i]['auth_type']???? = ‘http’;??? http是永不过期

Statement:
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