<%@ Page Language="vb" Explicit="False" Strict="False" %>
<html>
<head>
<title>Getting cookie values in ASP</title>
</head>
<body>
<%
For Each strKey In Request.Cookies
Response.Write (strKey & " = " & Request.Cookies(strKey).Value & "<BR>")
If Request.Cookies(strKey).HasKeys Then
For Each strSubKey In Request.Cookies(strKey).Values
Response.Write ("->" & strKey & "(" & strSubKey & ") = " & _
Request.Cookies(strKey)(strSubKey).ToString() & "<BR>")
Next
End If
Next
%>
</body>
</html>
|