To check cookie disable status through javascript
niharpatil
Status: New User - Welcome
Joined: 26 Sep 2007
Posts: 1
Reply Quote
Hi,
I have wrote a javascript to check the status whether the cookie is disabled or enabled in the browser. I have used following function to check the same:
function checkCookie()
{
if (navigator.cookiesAreEnabled())
{
alert("cookies enabled");
}
else
{
alert("disabled");
}
}

This function works fine in Mozila firefox and doesnot work in IE6..
I have also tried creating a cookie and checking the cookie whether created. I have used document.cookie to create one... But the result is the same...
Could anybody help on this...
Back to top
Display posts from previous:   

All times are GMT - 8 Hours