Home > Database > phpMyAdmin > How to skip login in phpmyadmin

How to skip login in phpmyadmin

藏色散人
Release: 2020-04-06 10:17:16
Original
2802 people have browsed it

How to skip login in phpmyadmin

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;
        }
Copy after login
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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template