Cookie Detection

Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/67076?pagenum=1
05 November 2025, 07:45

Topic


mafifi
Cookie Detection
16 May 2008, 16:54


I found this code here http://asp101.com/articles/john/cookiedetect/default.asp but for some reason it does not work for me. Can someone look at the code and verfiy if it is actullay correct? Much appreciated.
Code:
<%
If Request.Querystring("Check") = "" Then
Session("cookietest") = "True"
Response.Redirect("cookietest.asp?Check=True")
Else
If Session("cookietest") Then
<!-- Execute code if enabled -->
Else
<!-- Execute code if disabled -->
End If
End If
%>
<

 

Replies ...


Podge
16 May 2008, 17:41


Looks ok to me. This should give you some output.
Code:
<%
If Request.Querystring("Check") = "" Then
Session("cookietest") = "True"
Response.Redirect("cookietest.asp?Check=True")
Else
If Session("cookietest") Then
Response.write(Session("cookietest"))
Else
"False"
End If
End If
%>
<
© 2000-2021 Snitz™ Communications