Javascript – How to disable cookies in Internet Explorer 7

cookiesinternet explorerjavascript

I've tried disabling cookies in Internet Explorer 7, I've changed the settings under Internet Options->Privacy and this did nothing, when I reloaded the page.

I read somewhere that you need to restart IE7, than physically delete the Internet cache and cookie files first, and finally reload your page to disable cookies. (I also had no luck with this, cookies are still present, as evidenced by my script still reacting as though cookies are loaded.)

Um I guess I should also note that IE asks me if I wish to enable an ActiveX component when I access the page I have created. I don't have any ActiveX components on the page, but I'll take this to mean I have Javascript on the page.

I know my script works because when I disable cookies in other browsers (FF3 and Safari) it works fine.

Is there something I'm missing here?

Best Answer

IE's cookie settings control panel applies to the Internet Zone only.

To disable cookies in other zones, use the IE8 developer toolbar (hit F12) and choose "Disable Cookies" from the menu.