Home >Backend Development >PHP Tutorial >javascript - If the cookie validity period is set from the server, why do the cookies read from the client have no validity period?

javascript - If the cookie validity period is set from the server, why do the cookies read from the client have no validity period?

WBOY
WBOYOriginal
2016-12-01 00:57:071013browse

The validity period is set from the server to 7 days, as you can see from the picture below

But after the setting is successful, the cookies read from the local machine have no validity period and are N/A. Why is this?
javascript - If the cookie validity period is set from the server, why do the cookies read from the client have no validity period?

Reply content:

The validity period is set from the server to 7 days, as you can see from the picture below

But after the setting is successful, the cookies read from the local machine have no validity period and are N/A. Why is this?
javascript - If the cookie validity period is set from the server, why do the cookies read from the client have no validity period?

Because this is the requested cookie = =There is no need to request the validity period when requesting = =

This is normal Request Cookie. You only need to know the name of the cookie. You can look at the Cookies in the Resources tab to record the current Cookies status

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