Php programs always prompt incorrect verification code input solution, php verification code _ PHP Tutorial

Source: Internet
Author: User
The php program always prompts that the verification code is incorrect. The php program always prompts that the verification code is incorrectly entered. The php verification code is executed on another server today, no matter whether you enter the correct php program, the system always prompts that the verification code is incorrectly entered. Solution: php verification code

When I put a set of programs on another server for execution today, I found that the background login verification code is always displayed, regardless of whether the entered verification code is correct or not:

Incorrect verification code

Then start debug.

Because the correct verification code result has been encrypted and saved in the session, all the verification codes used for input will be compared with the session to determine whether the verification code is entered incorrectly!

Since it is always displayed: "Incorrect verification code entered"

This indicates that the result of saving the session may be incorrect. Then, dump the session and find that the result is null ......

Solution: Use phpinfo to view the session information, find the save path of the session, and set the write permission for the session.

Note: restart apache or iis.

Today, when I put a set of programs on another server for execution, I found that the logon verification code on the background is correct regardless of the entered...

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.