How can I list my current cookie variables?

Discussion in 'ASP General' started by michaaal, Jan 31, 2004.

  1. michaaal

    michaaal Guest

    How can I list my current cookie variables?
     
    michaaal, Jan 31, 2004
    #1
    1. Advertisements

  2. "michaaal" <> wrote in message
    news:...
    > How can I list my current cookie variables?


    [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
     
    Chris Hohmann, Jan 31, 2004
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ben
    Replies:
    3
    Views:
    6,198
    Steven Cheng[MSFT]
    Jun 3, 2004
  2. Shapper

    Cookie and Session Cookie Questions.

    Shapper, Apr 27, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    770
  3. =?Utf-8?B?UGF1bA==?=

    Cookie Question (IP as domain and cookie file location)

    =?Utf-8?B?UGF1bA==?=, Jan 10, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    2,733
    Bruce Barker
    Jan 10, 2006
  4. ad
    Replies:
    2
    Views:
    8,750
    Kevin Spencer
    Jan 27, 2006
  5. =?Utf-8?B?TnVubw==?=

    Convert a PHP cookie to an ASP.NET cookie

    =?Utf-8?B?TnVubw==?=, Jan 31, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    580
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Jan 31, 2006
  6. Replies:
    9
    Views:
    1,309
  7. HorseGeek
    Replies:
    2
    Views:
    227
    kaeli
    Apr 5, 2004
  8. James E Keenan
    Replies:
    2
    Views:
    228
    James E Keenan
    Nov 15, 2005
Loading...