phpmyadmin logs out after 1440 secs

后端 未结 24 1289
予麋鹿
予麋鹿 2021-01-29 23:29

In my local development Ubuntu box I use MySQL and phpmyadmin to work with the database.

Whenever phpmyadmin is idle for 1440 secs (24min) the session expires. I lose m

相关标签:
24条回答
  • 2021-01-29 23:45

    I have found the solution and using it successfully for sometime now.

    Just install this Addon to your FF browser.

    0 讨论(0)
  • 2021-01-29 23:46

    There seems to be UI for changing phpmyadmin configurations Start apache and click the following link

    http://localhost/phpmyadmin/setup/index.php?page=form&formset=Features#tab_Security

    0 讨论(0)
  • 2021-01-29 23:47

    Go to PHPMyAdmin in your browser

    Settings > Features > Change the value of Login cookie validity > Saveenter image description here

    NOTE: You will have to do this per session.

    0 讨论(0)
  • 2021-01-29 23:47

    For Ubuntu 18.04 I just edited the file /usr/share/phpmyadmin/libraries/config.default.php

    Change: $cfg['LoginCookieValidity'] = 1440

    0 讨论(0)
  • 2021-01-29 23:50

    You will then get another warning: “Your PHP parameter session.gc_maxlifetime is lower that cookie validity configured in phpMyAdmin, because of this, your login will expire sooner than configured in phpMyAdmin.“. That makes sense because php’s session will time out first anyways. So we will need to change /etc/php.ini .

    session.gc_maxlifetime = 43200
    That’s 12 hours in seconds. 
    

    Restart your apache server and you are done!

    source: http://birdchan.com/home/2011/06/06/phpmyadmin-timeout-after-1440-seconds/

    this works for me! :)

    0 讨论(0)
  • 2021-01-29 23:52

    You just Increase the phpMyAdmin Session Timeout, open config.inc.php in the root phpMyAdmin directory and add this line.

    from the wamp folder path wamp\apps\phpmyadmin4.0.4\config.inc.php

    $cfg['LoginCookieValidity'] = <your_timeout>;
    

    Example

    $cfg['LoginCookieValidity'] = '1440';
    

    Note: short cookie lifetime is all well and good for the development server not for your production server.

    0 讨论(0)
提交回复
热议问题