See the following link.
http://forums.asp.net/t/1044823.aspx?How+to+check+cookies+enabled+in+a+web+browser+
The only way to check is to set a cookie, then redirect it and check again whether you have access to it or not. So try the method below indicated in the link above.
protected void Page_Load(object sender, EventArgs e) { if (this.IsCookieDisabled()) errorMsgLabel.Text = Resources.Resource.BrowserDontSupportCookies; } private bool IsCookieDisabled() { string currentUrl = Request.RawUrl; if (Request.QueryString["cookieCheck"] == null) { try { HttpCookie c = new HttpCookie("SupportCookies", "true"); Response.Cookies.Add(c); if (currentUrl.IndexOf("?") > 0) currentUrl = currentUrl + "&cookieCheck=true"; else currentUrl = currentUrl + "?cookieCheck=true"; Response.Redirect(currentUrl); } catch(Exception ex) { return false; } } if (!Request.Browser.Cookies || Request.Cookies["SupportCookies"] == null) return true; return false; }
source share