While testing our site with IE, we were disabling/enabling the cookies from the privacy settings tab. But this not does seem to work as expected. (for the first time it worked, and from then on,it stopped working).Chrome and Firefox seem to work fine though.
the logic we have written to check if cookies are enabled/disabled is as follows:
We try to create a test cookie using document.cookie(we have not specified any domain nor an expiry date). If the cookie can be created, then we say the cookies are enabled,else they are disabled.We then go ahead and remove the test cookie. The problem in IE is that,even if the cookies are enabled,we are not able to create the test cookie/if they are disabled, we are able to create the test cookie. It happens both the ways.
any thoughts/ideas?