Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On ubuntu 10.04 the phpmyadmin config is a little bit scattered.

I want to set the loginexpiration time to zero, should never expire, this is a secured setup behind a firewall. I think it is 3600 by default but cannot find the setting.

Where is it?

Edit: I actually changed it in /etc/phpmyadmin/ which seems the recommended place for ubuntu. The other files mentioned below might be overwritten on updates.

share|improve this question
up vote 1 down vote accepted

I think that you want to change the value of LoginCookieValidity. This is defined and set in /usr/share/phpmyadmin/libraries/config.default.php e.g.

$cfg['LoginCookieValidity'] = 1440;

The documentation ( /usr/share/phpmyadmin/Documentation.html ) says this

$cfg['LoginCookieValidity'] integer [number of seconds] Define how long is login cookie valid. Please note that php configuration option session.gc_maxlifetime might limit session validity and if session is lost, login cookie is also invalidated. So it is good idea to set session.gc_maxlifetime at least as high is $cfg['LoginCookieValidity'] is set.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.