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