gpt4 book ai didi

javascript - 无法将 cookie 设置为超过一周后过期

转载 作者:行者123 更新时间:2023-12-04 00:59:34 26 4
gpt4 key购买 nike

这两种方法都以 max-age/expiry 仅在未来 7 天结束。

document.cookie = "testCookie=value; max-age=999999999";
document.cookie = "testCookie=value; expires=Fri, 31 Dec 9999 23:59:59 GMT";

我也尝试过使用这两种方法和各种 cookie 库的不同值,但没有成功。

最佳答案

原来这是 Brave 浏览器中的预期行为。参见 #3443了解更多信息

关于javascript - 无法将 cookie 设置为超过一周后过期,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59700288/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com