Set phpMyAdmin Login Cookie Validity Time (Đặt thời gian cookie đăng nhập phpMyAdmin)

MacOS
/usr/local/share/phpmyadmin/config.inc.php
add the following line :
$sessionValidity = 3600 * 24 * 365; // one year $cfg['LoginCookieValidity'] = $sessionValidity;
php.ini /usr/local/etc/php/7.4/php.ini
session.gc_maxlifetime = 31536000
OSPanel (Open Server)
E:\OSPanel\modules\system\html\openserver\phpmyadmin\libraries\config.default.php $cfg['LoginCookieValidity'] = 99999;
phpMyAdmin disable admin login
Just need to edit /etc/phpmyadmin/config.inc.php Open this file. find /* Authentication type */ add
$cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = ''; $cfg['Servers'][$i]['AllowNoPassword'] = TRUE; $cfg['Servers'][$i]['AllowRoot'] = TRUE;
OSPanel (Open Server)
Step 1 : Open \OSPanel\userdata\config\phpmyadmin_config.inc.php
Step 2 : Find $cfg['Servers'][1]['auth_type'] = 'cookie'
Step 3 : Replace with this code
//$cfg['Servers'][1]['auth_type'] = 'cookie'; $cfg['Servers'][1]['auth_type'] = 'config'; $cfg['Servers'][1]['user'] = 'root'; //edit this line $cfg['Servers'][1]['password'] = ''; // edit this line
Trao đổi về dự án của bạn!


