PHP: The session cannot be used. 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: when debu put a set of programs on another server for execution today, it finds 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.
Original article, reprinted with the source: a civil engineer
If the token verification code is entered incorrectly, start debu...