Strange questions about the session and verification code

Source: Internet
Author: User
Strange questions about session and verification code
The server is installing Apache

Web site is developed with the thinkphp framework, with the verification code image

Member registration page, using the Verification Code, HTML page:



When registering, the program determines the code of the CAPTCHA Image:

if ($_session[' verify '! = MD5 ($_post[' verify ']))
Exit (' Wrong CAPTCHA! ');

The program should be no problem, because I test on the native test and the server is normal

But today, a person said that when the registration, the validation code input is correct, the results hint: the CAPTCHA Error!

He said that with IE and FF browser is not possible ...

I'm going to test it myself. Registration of new members can be, others have registered members of others, the same success.

I don't know what's wrong with the situation like me.

I wonder if the Web environment: apache+php is out of the question?

Share to:
Continue to judge whether the verify value is equal;
}else{
Echo ' session[verify] value does not exist or is empty, check the server session function is normal ';
}
------Solution--------------------
Problems with his browser settings.
------Solution--------------------
Reference:
the server is installing Apache

Web site is developed with the thinkphp framework, with the verification code image

Member registration page, using the Verification Code, HTML page:



When registering, the program determines the generation of the CAPTCHA image
.

Landlord can understand that the user's browser does not operate correctly if there is a cookie disabled, etc.
  • 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.