4

I accidentally set timer to log me out of phpmyadmin to 0. Now when i log in, it logs me out immediately. I purged phpmyadmin, and after i reinstalled it, it still does the same thing

1 Answers1

4

Find config.inc.php where you install phpMyAdmin. There will be a

$cfg['LoginCookieValidity'] = 0;

Change the 0 to another number (example: 1 second) and save the file.


  • config.inc.php file is not required, and is only for custom configurations, phpmyadmin will first refer to ./libraries/config.default.php but please do not edit that file. Create the 1st file.
  • config.sample.inc.php can be used to create the initial template for config.inc.php.
Rinzwind
  • 299,756
  • Many sites reference this file (config.inc.php) but it doesn't exist on my system. This doesn't help me. – UserX Feb 04 '20 at 19:12
  • 1
    @UserX Have you checked /etc/phpmyadmin? – Orion Apr 10 '20 at 13:57
  • @UserX it is an optional file we use to create custom configs. If you do not have it you also will not have set a timer to log out ;-) – Rinzwind Apr 10 '20 at 14:14
  • In my case the config file was in libraries/config.default.php (using v5.1). I changed LoginCookieValidity value to 3600*24 (24 hours). – ling Jun 15 '21 at 06:41