We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
默认情况下,如果一个 cookie 没有设置这两个参数中的任何一个,那么在关闭浏览器之后,它就会消失。此类 cookie 被称为 "session cookie”。 为了让 cookie 在浏览器关闭后仍然存在,我们可以设置 expires 或 max-age 选项中的一个。
没有设置这两个参数中的任何一个关闭浏览器后就会消失,也就是说两个参数必须都设置才不会消失,但是下一段又说设置一个就会存在在,所以这段话有异议