Home >Backend Development >PHP Tutorial >CakePHP: HTTPS HTTP page jump causes login information to be lost_PHP tutorial

CakePHP: HTTPS HTTP page jump causes login information to be lost_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-13 17:43:421008browse

One of the possible situations is that there is a problem with the Session, causing the set-cookie returned by the server to be incorrect or missing.

As a result, the user's login information cannot be maintained.

One of the solutions is to obtain the username and password from the submission form after the user successfully logs in, and manually set them in the browser cookie.

Note that the way to obtain the password is $this->data[User][password]. If you use $this->Auth->user[password], the value may not be obtained in some cases.

If you are not switching between SSL/NONE SSL or switching between multiple application servers, this problem generally does not occur.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/478815.htmlTechArticleOne of the possible situations is that there is a problem with the Session, causing the set-cookie returned by the server to be incorrect or lost. As a result, user login information cannot be maintained. One solution is to log in as the user...
Statement:
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