Eu buntu nix

Web Eu Buntu nix

Saturday, May 19, 2007

phpmyadmin authentication timeout

I'm just an occasional user of phpmyadmin, but some colleagues who heavily works on databases told me that they were really annoyed by the fact that after a quite short amount of time they needed to authenticate again.

The problem is that the cookie authentication set the lifetime of the cookie itself to 1800 seconds (30 minutes); after 30 minutes you need to login again.

If you like to change this behavior, edit the file /etc/phpmyadmin/ and add the following line:

$cfg['LoginCookieValidity'] = 18000;

this will set the lifetime of the cookie to 5 hours (18000 seconds).

Note: this solution came from

Its working fine with my phpmyadmin.


  • sometimes you need :
    /* set login cookie expiry time */
    $cfg['Servers'][$i]['LoginCookieValidity'] = 18000;

    for it to work properly.
    Obviously you need to logout and back in again for it to become effective.

    By Blogger Grindlay, at 8:26 AM  

Post a Comment

<< Home