PHP: session cannot be used_PHP tutorial

WBOY
Release: 2016-07-13 10:39:38
Original
920 people have browsed it

When I put a set of programs on other servers 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

Original article, please indicate the source when reprinting: I was a civil engineer

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/729846.htmlTechArticleWhen I put a set of programs on other servers for execution today, I found that the login verification code in the background was entered correctly. Or not, it always displays: The verification code is entered incorrectly and then debugging begins...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!