: 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.