How to manually set cookie validation time to log in to phpMyAdmin

In phpMyAdmin, I set the "validity of login passwords" to 1sec. As you can imagine, now he throws me after 1 second of login. I can't change it back to phpMyAdmin fast enough, so I need a manual alternative.

I do not want to reinstall phpMyAdmin as I will lose all my databases. I also cannot log in long enough to export them. Is there any way to do this manually?

I tried installing session.gc_maxlifetimein 86400to my php.inifile but did nothing.

+4
source share
3 answers

config.inc.php cookie , max, :

PHP session.gc_maxlifetime , cookie, phpMyAdmin, - , phpMyAdmin.

, config.inc.php , ( , ):

$sessionValidity = 3600 * 24 * 365; // one year

$cfg['LoginCookieValidity'] = $sessionValidity;
ini_set('session.gc_maxlifetime', $sessionValidity);

, , , config.inc.php.

+4

, , "" phpMyAdmin. phpMyAdmin, , , / cookie. phpMyAdmin Configuration Storage .

  • . config.inc.php $cfg['Servers'][$i]['userconfig']. , phpMyAdmin ( , , phpmyadmin) userconfig ( pma__userconfig). , config_data reset .
  • ( MySQL), phpMyAdmin ( , , phpmyadmin) userconfig ( pma__userconfig). config_data reset . SQL ( ), , , , MySQL.

, .

+3

config.inc.php, phpadmin, :

$cfg ['LoginCookieValidity'] = 14400;

14400 - , 3 , , .

+3
source

Source: https://habr.com/ru/post/1524923/


All Articles