Cookie disabled issue in IE

本小妞迷上赌 提交于 2020-01-15 12:03:28

问题


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?

来源:https://stackoverflow.com/questions/19358244/cookie-disabled-issue-in-ie

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!