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
Release: 2023-03-02 09:06:01
Original
1011 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template