Following are set and confirmed:
- I've set
$cfg['Servers'][$i]['LoginCookieValidity'] = 259200;
inconfig.inc.php
, - I've set
session.gc_maxlifetime = 259200
inphp.ini
, - I see value
259200
inSettings > Features > General
tab, inLogin 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.
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 tocookie
) and that you restart Apache after all the changes to configruation files are saved.