When I put a program on another server for execution today, I found that the login verification code in the background always displayed:
no matter whether it was entered correctly or not.The verification code is entered incorrectly
Then debugging started.
Because the correct verification code result has been encrypted and stored in the session, all verification codes used for input will be compared with those in the session to determine whether the verification code was entered incorrectly!
Since it always displays: "The verification code entered is incorrect"
Indicates that there may be a problem with saving the results in the session. Then, dump the session and find that the result is null...
Solution: Use phpinfo to view session information, find out the save path of the session, and then set write permissions for it
Note: Remember to restart apache or iis