How I can check cookie enabled or disabled for IE7?
-
Hi, I am using code behind aspx.cs c#: if (Request.Browser.Cookies) lblBrowser.Text = "<b>Cookie Enabled</b>"; else lblBrowser.Text = "<b>Cookie Disabled</b>"; Problem: -I am using IE7 and from tools>Internet Option>privacy -I am selecting Block All Cookies -when again I am tring to run my code it showing cookie Eanbled. Can U solve this problem or give me some relative code. Thanks Ashish
-
Hi, I am using code behind aspx.cs c#: if (Request.Browser.Cookies) lblBrowser.Text = "<b>Cookie Enabled</b>"; else lblBrowser.Text = "<b>Cookie Disabled</b>"; Problem: -I am using IE7 and from tools>Internet Option>privacy -I am selecting Block All Cookies -when again I am tring to run my code it showing cookie Eanbled. Can U solve this problem or give me some relative code. Thanks Ashish
Request.Browser.Cookies tells whether browser supports the cookies or not... it doesn't gives the value whether the cookies are enabled I'm not sure if there is way to check it through ASP.NET, a simple javascript does it..
.....
-
Hi, I am using code behind aspx.cs c#: if (Request.Browser.Cookies) lblBrowser.Text = "<b>Cookie Enabled</b>"; else lblBrowser.Text = "<b>Cookie Disabled</b>"; Problem: -I am using IE7 and from tools>Internet Option>privacy -I am selecting Block All Cookies -when again I am tring to run my code it showing cookie Eanbled. Can U solve this problem or give me some relative code. Thanks Ashish