phpmyadmin automatic logout time

后端 未结 9 1818
借酒劲吻你
借酒劲吻你 2020-11-29 18:31

How can I change the phpmyadmin automatic log out time?

It will log out automatically after 1440 seconds which is very low for me. How can I change the option or re

相关标签:
9条回答
  • 2020-11-29 19:16

    Changing php.ini will change the session duration for all the websites running on the server. To change it just for PhpMyAdmin, open config.inc.php and add:

    $sessionDuration = 60*60*24*7; // 60*60*24*7 = one week
    ini_set('session.gc_maxlifetime', $sessionDuration);
    $cfg['LoginCookieValidity'] = $sessionDuration;
    
    0 讨论(0)
  • 2020-11-29 19:16

    Server:localhost -> Settings -> Features -> General -> Login cookie validity

    0 讨论(0)
  • 2020-11-29 19:17

    I have phpmyadmin 4.9.2. and try to config LoginCookieValidity, but I have auto logout :( If you using localhost you can try https://docs.phpmyadmin.net/en/latest/config.html#example-for-ip-address-limited-autologin

    if ($_SERVER["REMOTE_ADDR"] == "127.0.0.1") {
        $cfg['Servers'][$i]['auth_type'] = 'config';
        $cfg['Servers'][$i]['user'] = 'root';
        $cfg['Servers'][$i]['password'] = 'yourpassword';
    } else {
        $cfg['Servers'][$i]['auth_type'] = 'cookie';
    }
    
    0 讨论(0)
提交回复
热议问题