📜  会话 cookie 与持久性 cookie - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:14.107000             🧑  作者: Mango

代码示例1
There are two different types of cookies - session cookies and persistent cookies. If a cookie does not contain an expiration date, it is considered a session cookie. Session cookies are stored in memory and never written to disk. When the browser closes, the cookie is permanently lost from this point on. If the cookie contains an expiration date, it is considered a persistent cookie. On the date specified in the expiration, the cookie will be removed from the disk.