I need to test if cookies are enabled in the browser. I disabled cookies in
my browser and rebooted my browser, yet the below code still writes a cookie
and reads it correctly. Am I approaching this correctly?
thanks
<%
Response.Cookies("smcookietest") = ("8")
Response.Cookies("smcookietest").Expires = Date + 2
%>
<%
If Request.Cookies("smcookietest") <> "8" Then
Response.Redirect("error.asp?error=19")
End If
%>
<%=Request.Cookies("smcookietest")%>