My cookie test isn't working

Cypress

New Member
I am testing to see whether the user has cookies turned on and I don't seem to be doing something right.Here is my test:\[code\]private bool CookiesAllowed(){ var testCookie = new HttpCookie("TestCookie", "abcd"); System.Web.HttpContext.Current.Response.Cookies.Set(testCookie); var tst = System.Web.HttpContext.Current.Request.Cookies.Get("TestCookie"); if (tst == null || tst.Value =http://stackoverflow.com/questions/14061783/= null) { return false; } return true;}\[/code\]I'm putting a cookie out there... and then getting it back. But it always succeeds.Here is how I'm disabling them:
uwxPD.png
I go to Gmail and it tells me my cookies are disabled so I believe I am doing that part right. What am I doing wrong?
 
Back
Top