Returning all the cookies and their values

The code below will check what cookies your server has sent to the user's computer. It checks if the cookies have keys. (Cookies with Keys)

<%
Dim cookie, cookieKey
For each cookie in Request.Cookies
Response.write "<p>"
If Request.Cookies(cookie).HasKeys then
For each cookieKey in Request.Cookies(cookie)
Response.write cookie & ":" & cookieKey & "=" & _
Request.Cookies(cookie)(cookieKey)
Response.write "<br />"
Next
Else
Response.Write cookie & "=" & Request.Cookies(cookie) & "<br />"
End if
Response.write "</p>"
Next
%>

Get the best asp web hosting provider now and save 30%

Advertisements



MembersPro

MembersPro PayPal - ASP Membership software

Plug and play ASP membership script that integrates with PayPal to let you charge recurring membership fees.