This article describes how php programs always prompt Incorrect verification code input solutions. For more information, see
This article describes how php programs always prompt Incorrect verification code input solutions. For more information, see
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.