CakePHP: logon information loss caused by page jump of HTTPSHTTP _ PHP Tutorial

Source: Internet
Author: User
CakePHP: a jump to the HTTPSHTTP page causes loss of logon information. One possible cause is that the set-cookie returned by the server is incorrect or lost due to a Session problem. As a result, the user login information cannot be maintained. One of the solutions is that, when a user logs on, one of the possible reasons is that the Session is faulty, resulting in a set-cookie error or loss returned by the server.

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

One solution is to obtain the user name and password in the submission form after the user successfully logs on, and manually set the password to the browser Cookie.

Note that the password is obtained in the format of $ this-> data [User] [password]. if you use $ this-> Auth-> user [password], the password cannot be obtained in some cases.

This problem is not typically not encountered if you do not switch between SSL/none ssl or between multiple application servers.

The set-cookie returned by the server is incorrect or lost. As a result, the user login information cannot be maintained. One solution is to log on to the console as a user...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.