【发布时间】:2017-11-03 01:00:31
【问题描述】:
Sharethis 向我的网站写入了一个没有名称的 cookie(值“sharethis_cookie_test”),这给我带来了很多会话问题(在 Chrome 上)。我已从我的站点中删除了 sharethis 插件,但 cookie 仍会在用户的计算机上。
document.cookie 打印出"__sharethis_cookie_test__; sessionid=kb0akjqdu..."
如何删除没有名称的 cookie?当我尝试通过
使cookie过期时document.cookie = "__sharethis_cookie_test__=;expires=Thu, 01 Jan 1970 00:00:00 GMT";
...它不起作用。想法?
【问题讨论】:
-
这看起来对我来说...
-
谢谢 Anil,你能在 Chrome 中测试/重现吗?
标签: javascript html google-chrome cookies sharethis