Cookie Detection - نوشته شده در (1079 Views)
Junior Member
mafifi
مطلب: 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
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Support Moderator
Podge
مطلب: 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
%>
<
 
شما باید یک متن وارد کنید