I am trying to find that the cookies are enabled or disabled with javascript.
Detail description :
I have created a function in the javascript as below :
if (navigator.cookieEnabled != true) {
alert("Cookies are not enabled, Please enable cookies to continue logging in ProjectName");
}
I have placed the function in the onload in the body of the page . Please note that this function works fine for the chrome and Firefox.
But it is not working for the IE11 , and the reason is the navigator.cookieEnabled always returns true even if the cookies are disable or blocked so please suggest other way or add comment to make this right. Also used document.cookies.length but it also returns true even if the cookies are disabled.