This article mainly introduces the solution that php programs always prompt Incorrect verification code input. If you need a solution, you can refer to the following when you put a set of programs on other servers for execution, no matter whether the logon verification code is entered correctly or not, it is always displayed:
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.