Possible causes of failure to read Cookies by PHP

Source: Internet
Author: User
: This article mainly introduces the possible causes of failure to read Cookies by PHP. For more information about PHP tutorials, see. Symptom:

The server cannot read the Cookies previously written to the client.

PHP writes the Session Id to the Cookies on the client. as a result, the cookie information is not included in the request header during each request,

Analysis:

It may be because domain settings may be incorrect,

After viewing the domain information of cookies, besides the domain name information, there is also port information. it is suspected that the browser considers this cookie to be a security risk because of the port. It is not sent to the server.

It often appears on websites with port numbers. Set the domain name and remove the port number and.

Retry: pass.

The above section describes the possible causes for PHP to fail to read Cookies, including the relevant content, and hopes to help those who are interested in PHP tutorials.

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.