locked
Cookie disable is not working in Internet Explorer 11 using advance seeting. RRS feed

  • Question

  • User-945250335 posted

    Cookie disable is not working under two scenarios:

    I am using below Javascript code to check cookies enable in IE 11.

         var areCookiesEnabled= function () {
            //check by using navigator
            var cookieEnabledNavigator = (navigator.cookieEnabled) ? true : false;
            //By Setting Test Cookies
            document.cookie = "testcookie";
            var cookieEnabled = (document.cookie.indexOf("testcookie") != -1) ? true : false;
            return (cookieEnabled && cookieEnabledNavigator);
          }

    t works when do below setting to disable cookies.

    enter image description here

    But it doesn't work with below setting to disable cookies.

    enter image description here

    enter image description here

    Is there way to handle this through javascript code or c# code.

    Thursday, June 7, 2018 11:53 AM

All replies