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.