Phpmyadmin login-free

Source: Internet
Author: User
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;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.