0

Following are set and confirmed:

  • I've set $cfg['Servers'][$i]['LoginCookieValidity'] = 259200; in config.inc.php,
  • I've set session.gc_maxlifetime = 259200 in php.ini,
  • I see value 259200 in Settings > Features > General tab, in Login cookie validity field, in phpMyAdmin.

And even so, my phpMyAdmin logs-off automatically, with message, that there was no action for past 1440 seconds (default pMA's value) and re-login is required. So, it still ignores my setting of 259200 seconds (three days).

What other settings or factors may influence this behavior?

EDIT: I'm using XAMPP for Windows, and I've observed this behavior only on one of my computers, though I'm using exactly the same settings set (entire XAMPP unpacked from common .zip file) on my every machine (other computers keeps pMA session for 3 days. This makes case even more suspicious.

trejder
  • 143
  • 10

1 Answers1

0

For those, struggling the same problem.

The LoginCookieValidity is system-wide setting, not per-server one. So it have to be specified as $cfg['LoginCookieValidity'], not as $cfg['Servers'][$i]['LoginCookieValidity'].

Plus, standard cases, mentioned by edvinas.me and symlynk in the comments: make sure, that you set phpMyAdmin to use cookies ($cfg['Servers'][$i]['auth_type'] param set to cookie) and that you restart Apache after all the changes to configruation files are saved.

trejder
  • 143
  • 10