Cookie Detection - Postet den (1075 Views)
Junior Member
mafifi
Innlegg: 308
308
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
%>
<
Regards,

Mo
   
 Sidestørrelse 
Postet den
Support Moderator
Podge
Innlegg: 3776
3776
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
%>
<
 
Du må legge inn en melding