IE, cookies and localhost
I was testing the detecting of disabled cookies today, and discovered a problem with how Internet Explorer handles cookies management. It is possible to go into IE and tell it that you don't want cookies, or to prompt you if one is getting created. Well, I did this, and the cookie stuff I was doing didn't work. I finally narrowed it down to the fact that I was testing on my local machine, over localhost. Even though I had told IE to override the default cookie management, it allowed cookies for localhost URLs (my local machine). When I uploaded the code to my public site (this blog) IE behaved as it should. I guess this is because IE sees localhost as a trusted domain, but I specifically told it how to handle cookies, and to override the defaults!
I just can't wait until Microsoft's competition forces them to make their web browser more usable...I know a lot of people like IE, but personally I prefer Firefox. However, as a web developer I have to test my pages in IE, since 80-85% of the web still uses it. Sigh...
Jake Munson
38 Yrs old
I just ran into the exact same problem....%#*% IE!!!
Goto "internet options" --> "security" --> select the "local intranet" icon --> click on "sites..."
--> disable the first checkbox "Include all local (intranet) sites not .." --> click "ok"
Goto the tab "privacy" --> click "Advanced..." --> check the first checkbox "override..." and block cookies for first-party and third-party --> uncheck the last checkbox "Always allow session cookies"
Than my JavaScript for testing cookie support works fine with localhost.
greetings from hamburg,germany