Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

phpmyadmin automatic logout time

How can I change the phpmyadmin automatic log out time?

It will log out automatically after 1440 seconds which is very low for me. How can I change the option or remove log in request completely?

like image 377
Abadis Avatar asked Jun 30 '12 09:06

Abadis


2 Answers

Changing php.ini will change the session duration for all the websites running on the server. To change it just for PhpMyAdmin, open config.inc.php and add:

$sessionDuration = 60*60*24*7; // 60*60*24*7 = one week ini_set('session.gc_maxlifetime', $sessionDuration); $cfg['LoginCookieValidity'] = $sessionDuration; 
like image 147
laurent Avatar answered Oct 05 '22 03:10

laurent


In PHPMyAdmin 4 this no longer appears in the config.inc.php file. Instead go to PHPMyAdmin in your browser. Ensure you are at the localhost level to see the Settings link. Then set Settings > Features > Change the value of 'Login cookie validity' > Save

instructions

like image 23
Kohjah Breese Avatar answered Oct 05 '22 03:10

Kohjah Breese