phpMyAdmin session duration

Date: 28 Jun 2014
Author: Erik Dubbelboer

To increase the session duration in phpMyAdmin you have to change 2 different settings. I’m mostly writing this post for myself because I always forget which two.

In phpmyadmin/config.inc.php you have to add:

<?

$cfg['LoginCookieValidity'] = 60*60*24; // 1 day.

And in /etc/php5/fpm/php.ini you have to change:

session.gc_maxlifetime = 86400

If you don’t change this setting it will be 1440 seconds by default and your phpMyAdmin session won’t be able to last longer.

comments powered by Disqus