Step 1: Open phpmyadminlibrariespluginsauthAuthenticationCookieclassphp to find the definitions of the authCheck and authSetUser functions, and add a returntrue at the beginning of the function body. this is the first step for both functions at any time:
Open phpmyadmin/libraries/plugins/auth/AuthenticationCookie. class. php
Find the definitions of the functions authCheck and authSetUser, and add return true directly at the beginning of the function body. This means that the two functions will only return true at any time.
After step 1, you can automatically access the dashboard without logging on to phpmyadmin every time you open it. However, you will still be prompted that your token has expired after a long time of no operation. you need to refresh the page.
So the second step is to solve this problem.
Step 2:
Open phpmyadmin/libraries/common. inc. php
Find the following code:
$ Token_mismatch = true; if (PMA_isValid ($ _ REQUEST ['token']) {$ token_mismatch = ($ _ SESSION ['pma_token']! =_ _ REQUEST ['token']);}
Insert a sentence after it:
$ Token_mismatch = false;