简体   繁体   中英

Not able to expire/remove cookie from browser using jquery

I am trying to expire/delete cookie with a specific name, although i am able to delete some cookie with name like "52847" or name with any number but not able to delete all the cookie like with name "_gid", "pardot", "personalization_id".

Here is what I tried -

document.cookie = "_gid=; value=; expires=Thu, 18 Dec 2013 12:00:00 UTC; path=/";

I also check whether this could be due to the Path that I used along with the cookie. But the path is correct. See below image - Cookie

What could go wrong? Please advice

如果您使用默认路径,是否可以尝试取消属性路径,在本地对其进行测试,并且似乎没有

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM