可以在IE8中删除cookie,但不能删除chrome13、firefox3.6
浏览器上有cookie,我的域名是zhu13890.prod.xxxx.corp
Cookie信息:
name:Vanilla-Volatile
value:1-1313808454|54614728ee113ab09e4db5c863cd5cfa|1313635654|1|1313808454
域名:zhu13890.prod.xxxx.corp
路径:/
我向zhu13890.prod.xxxx.corp/ddd/j-security-logout发送请求,在fiddler中我可以看到响应代码是302,并且包含标头:
设置 Cookie:Vanilla-Volatile="";域名=zhu13890.prod.xxxx.corp;过期=1970 年 1 月 1 日星期四 00:00:10 GMT; Path=/
但是,cookie 不会被删除。
[8.26] 上次测试时,我可以在IE中删除cookie,但在chrome和firefox中无法删除cookie。但今天可以在 chrome 中删除,但在 IE 或 firefox 中不能删除。如此混乱
Has cookie on browser, my domain is zhu13890.prod.xxxx.corp
Cookie information:
name:Vanilla-Volatile
value:1-1313808454|54614728ee113ab09e4db5c863cd5cfa|1313635654|1|1313808454
domain:zhu13890.prod.xxxx.corp
path:/
I send a request a request to zhu13890.prod.xxxx.corp/ddd/j-security-logout, in fiddler i can see the response code is 302, and contains header:
Set-Cookie: Vanilla-Volatile=""; Domain=zhu13890.prod.xxxx.corp; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
however, the cookie is not removed.
[8.26]
Last time when I test, I can remove cookie in IE, but can not remove cookie in chrome and firefox. But today can remove in chrome but not in IE or firefox. so confuse
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
IE8 及其前身都是垃圾,即使您告诉它,在浏览器重新启动之前也不会真正删除 cookie。浏览器重启后cookie还存在吗? http://ebmgh.com/博客/2009/12/ie8-does-not-really-delete-cookies-until-restart/
IE8 and its predecessors are garbage and don't actually delete cookies until the browser is restarted, even if you tell it to. Does the cookie exist after a browser restart? http://ebmgh.com/blog/2009/12/ie8-does-not-really-delete-cookies-until-restart/
尝试response.setContentType(“text/html”)后。 cookie可以在IE和chrome中删除,但不能在firefox中删除,但这不是同一个问题。我创建了另一个问题 使用 Java 在 Firefox 中删除 cookie 失败; Firefox 创建一个头部带有点的新 cookie
After try response.setContentType("text/html"). cookie can be remove in IE and chrome, but not firefox, but it's not the same problem. I have created another question Fail to remove cookie in Firefox with Java; Firefox creates a new cookie with dot at the head