Phpmyadmin always logout in a while time that is annoying… To fix that you have to change some variables in /etc/phpmyadmin/config.inc.php and /etc/php/7.0/fpm/php.ini. It’s for Ubuntu 16.04. Here is an official phpmyadmin documentation Cookie authentication options
In the /etc/phpmyadmin/config.inc.php add the next code
1 2 3 4 5 |
$sessionDuration = 60*60*24*7; // 60*60*24*7 = one week ini_set('session.gc_maxlifetime', $sessionDuration); $cfg['LoginCookieValidity'] = $sessionDuration; $cfg['LoginCookieValidity'] = 604800; $cfg['LoginCookieStore'] = 604800; |
In the file /etc/php/7.0/fpm/php.ini change the variable to
1 |
session.gc_maxlifetime = 999999 |
Restart php-fpm
1 |
sudo systemctl restart php7.0-fpm |
That’s it