如何删除 HttpOnly cookie?
如果我的应用程序将 HttpOnly cookie 放置在客户端上,然后需要删除它们,如何才能完全删除它们?
If my application places HttpOnly cookies on a client and then needs to remove them how can you remove them completely?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以在用户访问您的网站时使 Cookie 过期,例如:
您必须对每个要删除的 Cookie 执行此操作。
You can cause the cookie to expire when the user visits your website, for example:
You'll have to do this for every cookie you want to be removed.
您无法联系并删除 cookie。您可以获取所有 cookie,清除数据并使其过期。
You can't reach out and delete cookies. You can take all the cookies, wipe out the data and make them expired though.