Groups | Blog | Home
all groups > inetserver asp general > january 2004 >

inetserver asp general : How can I list my current cookie variables?


michaaal
1/31/2004 12:30:14 PM
How can I list my current cookie variables?

Chris Hohmann
1/31/2004 2:36:22 PM
[quoted text, click to view]

[VBScript]
<%
For Each strKey In Request.Cookies
Response.Write strKey & " = " & Request.Cookies(strKey) & "<BR>"
If Request.Cookies(strKey).HasKeys Then
For Each strSubKey In Request.Cookies(strKey)
Response.Write "->" & strKey & "(" & strSubKey & ") = " & _
Request.Cookies(strKey)(strSubKey) & "<BR>"
Next
End If
Next
%>

The above code comes directly from the documentation located here:
http://msdn.microsoft.com/library/en-us/iissdk/iis/ref_vbom_reqoccookie.asp

HTH
-Chris Hohmann

AddThis Social Bookmark Button