PHP program always prompt verification code input Error solution, PHP Verification Code _php Tutorial

Source: Internet
Author: User

PHP program always prompt the verification code input Error solution, PHP verification code


Today when you put a set of programs on the other server execution, found that the background login verification code, regardless of whether the input is correct, always show:

Incorrect verification Code input

Then it started debugging.

Because the correct verification code results have been encrypted and saved in the session, all the verification code used for input will be compared with the session in order to determine whether the verification code is wrong!

Since always show: "Code input wrong"

Indicates that there may be a problem saving to the result in the session. Then, dump the session and find that the result is null ...

Workaround: Use Phpinfo to view session information, find the session's save path, and then set the Write permission to it

Note: Remember to restart Apache or IIS

http://www.bkjia.com/PHPjc/939409.html www.bkjia.com true http://www.bkjia.com/PHPjc/939409.html techarticle PHP program always prompt verification code input Error solution, PHP Verification code today in the implementation of a set of programs on other servers, found that the background login verification code regardless of input correct ...

  • 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.