J
Jon Cosby
I'm trying to test browsers for cookies. I have my browser set to prompt me
to accept cookies. As it is right now, I'm getting through whether I block
the cookie or not (no redirect). I'm deleting the files from my cookies each
time. Maybe it's just not as simple as it seems, can somebody suggest
something?
Response.Cookies("TestCookie").Value = "test"
Response.Cookies("TestCookie").Expires = DateTime.Now.AddMinutes(1)
If Request.Cookies("TestCookie") Is Nothing Then
Response.Redirect("nocookie.aspx")
Else
If Not IsPostBack Then
(Do something)
to accept cookies. As it is right now, I'm getting through whether I block
the cookie or not (no redirect). I'm deleting the files from my cookies each
time. Maybe it's just not as simple as it seems, can somebody suggest
something?
Response.Cookies("TestCookie").Value = "test"
Response.Cookies("TestCookie").Expires = DateTime.Now.AddMinutes(1)
If Request.Cookies("TestCookie") Is Nothing Then
Response.Redirect("nocookie.aspx")
Else
If Not IsPostBack Then
(Do something)