admin管理员组文章数量:1399815
so I set some cookies manually via Javascript by writing to document.cookie and they are getting written fine.
I checked using
console.log(document.cookie)
My issue is that even if I manually cleared my history via
- Internet options => Browsing History => Delete (making sure "Cookies and other website data" is ticked)
- Making sure "Delete browsing history on exit" is ticked and "Cookies and other website data" is also ticked
document.cookie still shows the cookie values I manually created.
Things I've tried:
- Close the tab. Manually clear my history. And then reopen my page on a new tab
- Close IE11 pletely. Reopen the app. And then open my page on a new tab
Any ideas what I could be doing wrong?
Thanks
ps. While I can expire my cookie via Javascript. I cannot expect end users to do same. :)
so I set some cookies manually via Javascript by writing to document.cookie and they are getting written fine.
I checked using
console.log(document.cookie)
My issue is that even if I manually cleared my history via
- Internet options => Browsing History => Delete (making sure "Cookies and other website data" is ticked)
- Making sure "Delete browsing history on exit" is ticked and "Cookies and other website data" is also ticked
document.cookie still shows the cookie values I manually created.
Things I've tried:
- Close the tab. Manually clear my history. And then reopen my page on a new tab
- Close IE11 pletely. Reopen the app. And then open my page on a new tab
Any ideas what I could be doing wrong?
Thanks
ps. While I can expire my cookie via Javascript. I cannot expect end users to do same. :)
Share Improve this question asked Mar 23, 2018 at 1:14 mrjayvipermrjayviper 2,38811 gold badges52 silver badges94 bronze badges 2- Can you check if it happens with other websites also? – Tarun Lalwani Commented Mar 29, 2018 at 7:16
- Use a real browser... IE sucks, bad. – Smitty-Werben-Jager-Manjenson Commented Apr 4, 2018 at 17:26
3 Answers
Reset to default 8 +25I've seen this happen if the website is "a favorite" in IE11. Can you try the following?
Go to Internet options => Browsing History => Delete (untick "Preserve Favorites website data"). Click delete, and close IE11.
If your website is not a favorite, let me know.
If you've already cleared your cookies the normal way, have you tried unchecking (if set) the Preserver Favorites Website Data option under Delete Browsing History? Tools > Safety > Delete Browsing History OR Ctrl + Shift + Delete.
If the above doesn't work, try pressing F12 and then Ctrl + R to clear browser cache, confirm you want to delete the browser cache. There is also an option to clear cookies for that specific domain under the Cache tab in Developer Tools Window.
I had the same problem with IE11 working under Windows 8.1: somehow the delete Browser Cookie didn't take effect. I could verify it using Burp: the cookies were still sent to the website. I tried the various options:
- Internet options => Browsing History => Delete (untick "Preserve Favorites website data"). Click delete, and close IE11.
- Manually typing 'Document.cookie = ""' into the Developer Console
- Resetting IE to default configuration
The only thing that actually worked for me was clearing the Browser Cookies through the Developer Console, as mentioned by lloan. For IE11, it looks a bit different so if you are looking for it, here it is:
- Open the Developer Tools using F12
- Go to Network
- Click on "Clear cookies for domain"
For screenshot, see here
本文标签:
版权声明:本文标题:internet explorer - cookies not getting cleared in IE11 (cookie was set by writing to document.cookie via Javascript) - Stack Ov 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744224168a2596007.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论