cookieDecrypt($_COOKIE['pmaUser-'.)" and save it."/> cookieDecrypt($_COOKIE['pmaUser-'.)" and save it.">
phpmyadminHow to skip login?
How to skip login in phpMyAdmin
You always need to log in locally. I found it troublesome, so I found the underlying code and directly modified the code to skip login. The modification method is as follows:
phpMyAdmin\libraries\classes\Plugins\Auth\AuthenticationCookie.php file readCredentials() method
added two pieces of code. Part of the code is intercepted below. The red code is the added code.
$value = $this->cookieDecrypt( $_COOKIE['pmaUser-' . $GLOBALS['server']], $this->_getEncryptionSecret() ); $value = 'root'; $_SESSION['browser_access_time'] = array('default'=> time()); $_COOKIE['pmaAuth-1'] = '{"iv":"40aTBsj8bIVduuNICE544w==","mac":"9a51ccbeb899a0ac4a37837bf35056663e218e5a","payload":"tZWA9CPztU8aAyAVMhFDgZy5NTuIQBISDQ3xPa8aVVg="}'; if ($value === false) { return false; } $this->user = $value; // user was never logged in since session start if (empty($_SESSION['browser_access_time'])) { return false; }rrree
The above is the detailed content of How to skip login in phpmyadmin. For more information, please follow other related articles on the PHP Chinese website!