This is the code I am using to check for active cookies on the users browers  I am running ASP.NET v2.5 and this below is ASP... I need help on the conversion. Thanks a Ton!
<%
Dim scr, loc
If Request.Querystring("Check") = "" Then
scr = Request.ServerVariables("SCRIPT_NAME")
loc = instrRev(scr,"/")
scr = mid(scr, loc+1, len(scr) - loc)
response.cookies("enabled").value="1"
Response.Redirect(scr & "?Check=True")
Else
if request.cookies("enabled").value="1" then
response.write("<div style=""font-weight: bold;"">Cookies are enabled!</div>")
else
response.write("<div style=""color: red;"">Cookies are NOT enabled!</div>")
end if
End If
%>
|