How to change time limit in phpmyadmin (logging in)

后端 未结 6 1298
走了就别回头了
走了就别回头了 2021-01-04 03:11

I use phpmyadmin to create mysql database. And I have set the auth type to cookie in the config.inc.php. How do I change the time limit so that even if I logged in I stayed

6条回答
  •  走了就别回头了
    2021-01-04 03:29

    Fast solution for Ubuntu:


    // edit php.ini and look for session.gc_maxlifetime
    sudo vi /etc/php5/apache2/php.ini

    // set to 24 hours
    session.gc_maxlifetime = 86400


    // edit config.inc.php and look for $cfg['LoginCookieValidity']
    sudo vi /etc/phpmyadmin/config.inc.php

    // set to 24 hours
    $cfg['LoginCookieValidity'] = 86400;


    // restart web server
    sudo service apache2 restart

提交回复
热议问题