I work on my wamp for localhost backend development everyday.
I feel annoyed by phpmyadmin auto log out out quickly. Is there any way I could get rid of this or extend the timeout?
Where can I set this timeout value?
I work on my wamp for localhost backend development everyday.
I feel annoyed by phpmyadmin auto log out out quickly. Is there any way I could get rid of this or extend the timeout?
Where can I set this timeout value?
To increase the phpMyAdmin
Session Timeout, open config.inc.php
in the root phpMyAdmin
directory and add this setting (anywhere).
$cfg['LoginCookieValidity'] = <your_new_timeout>;
Where <your_new_timeout>
is some number larger than 1800.
Note:
Always keep on mind that a short cookie lifetime is all well and good for the development server. So do not do this on your production server.
config.inc.php
is accessed fast and easy by sudo gedit /etc/phpmyadmin/config.inc.php
–
Swallowtail $cfg [‘Servers’][$i][‘auth_type’] = 'cookie';
and replace it with $cfg['Servers'][$i]['auth_type'] = 'http';
–
Chambertin session.gc_maxlifetime
, which has to be the same as LoginCookieValidity
, otherwise the smaller value will be the actual value. –
Mcmichael /usr/share/phpMyAdmin/setup/frames/config.inc.php
and /usr/share/phpMyAdmin/test/test_data/config.inc.php
In the first file, I see no $cfg
variable already declared. How does this solution work? In the test version of the file (2nd file), I do see the $cfg
variable. Is test really the correct place to configure production phpmyadmin? –
Supplement $cfg['Servers'][$i]['auth_type'] = 'cookie';
. Should we instead of $cfg['LoginCookieValidity'] = <your_new_timeout>;
be typing in $cfg['Servers'][$i]['LoginCookieValidity'] = 12345;
? ` –
Supplement /usr/share/phpmyadmin/libraries/config.default.php
–
Sidereal /usr/share/phpmyadmin/libraries/config.default.php
there is a big warning saying DO NOT EDIT THIS FILE, EDIT config.inc.php INSTEAD !!!
–
Bakke session.gc_maxlifetime
in the config too. Probably best to add something like: ini_set('session.gc_maxlifetime', $cfg['LoginCookieValidity']);
–
Sodomy Once you're logged into phpmyadmin look on the top navigation for "Settings" and click that then:
"Features" >
Unfortunately changing it through the UI means that the changes don't persist between logins.
ini
files for configuring their work environment... –
Blatant session.gc_maxlifetime
value, because otherwise phpmyadmin can't use own settings. I think this apply to any OS. –
Intern Server:localhost -> Settings -> Features -> General -> Login cookie validity
–
Elkeelkhound config.inc.php
as the other answer suggests. –
Szczecin © 2022 - 2024 — McMap. All rights reserved.