Is there any way to detect if the cookies are enabled in the browser for am ASP.net page. please reply me asap.
Detect if Cookies are enabled
Collapse
X
-
Actually here is my probelm, first comes the login page and when trying to login blocking cookies it takes to another page where there is a agreement and have two buttons 'iagree' & 'cancel', Hitting iagree refreshes the page and hitting cancel logs off from the site taking back to login page.I want to chck if cookies enabled in the login button click and if so pop up one alert asking to enable cookies, if they r enabled, normal functioning.... .......but i cud not keep it in the login button click,i have tried many methods none of them are of use,.could you or anyone can help me out with this.
Thanks.Comment
-
Hi i have tried this
if(navigator.co okieEnabled)
{
alert('yes');
}
else
{
alert('no');
}
on the onload of my page........... ....but donno y am getting corret re4sult in firefox but not in IE..even if i disable cookies i am getting 'yes'.......... .....?????????? ? cud u help me with this,.?ASAPComment
-
Cookies
Hi i have tried this to detect if cookies are enabled........ ...........
if(navigator.co okieEnabled)
{
alert('yes');
}
else
{
alert('no');
}
on the onload of my page........... ....but donno y am getting corret result in firefox but not in IE..even if i disable cookies i am getting 'yes'.......... .....?????????? ? cud u help me with this,.?ASAP
--------------------------------------------------------------------------------Comment
-
This article should help.
Originally posted by splendid9Hi i have tried this to detect if cookies are enabled........ ...........
if(navigator.co okieEnabled)
{
alert('yes');
}
else
{
alert('no');
}
on the onload of my page........... ....but donno y am getting corret result in firefox but not in IE..even if i disable cookies i am getting 'yes'.......... .....?????????? ? cud u help me with this,.?ASAP
--------------------------------------------------------------------------------Comment
-
Originally posted by PlaterNavigator is generally a mozilla-specific keyword (mozilla/netscape/firefox)
PS. Moved to JavaScript forum,
Moderator.Comment
Comment