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?
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?
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?
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