There is a constant warning on the bottom of my phpmyadmin home page:

Your PHP parameter session.gc_maxlifetime is lower than cookie validity configured in phpMyAdmin, because of this, your login will expire sooner than configured in phpMyAdmin.

Any insight into this and how it can be fixed?


The PHP parameter session.gc_maxlifetime determines how long a php session will stay alive and is set in your php.ini file. It is probably 1440 [seconds] (24 minutes). The phpMyAdmin setting can be found at Settings -> Features -> General -> Login cookie validity (in phpMyAdmin) and is probably 86400 [seconds] (24 hours). It determines how long a phpMyAdmin session will remain alive.

You can change either or both to suit your needs. As long as the first is greater or equal to the second, you will not get the warning. You will find php.ini in /etc/php5/apache2. You will need to edit it with sudo. Restart the web server for any change take effect. [apache50 restart].

  • Thanks. Why is it configured like this initially though? (especially if it throws off a warning)
    – L.B.
    Feb 2 '16 at 19:48
  • According to phpMyAdmin doc the default is 1440. Pure speculation (and experience) 24 minutes is not long enough to keep a pMA session open for CS50 psets, so I think it is changed in the CS50 implementation. Personally, it's a good thing. On the appliance (last year) I found myself logging into PMA every half hour and 1) it was a pain and 2) now I know why! Feb 2 '16 at 22:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .