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
Add a ment  | 

3 Answers 3

Reset to default 8 +25

I'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:

  1. Internet options => Browsing History => Delete (untick "Preserve Favorites website data"). Click delete, and close IE11.
  2. Manually typing 'Document.cookie = ""' into the Developer Console
  3. 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:

  1. Open the Developer Tools using F12
  2. Go to Network
  3. Click on "Clear cookies for domain"

For screenshot, see here

本文标签: