HTTPREsponse.Cookies

Discussion in 'ASP .Net' started by James Dixon, Sep 12, 2004.

  1. James Dixon

    James Dixon Guest

    I am hitting a j2ee website that is using cookies to maintain session state.
    In the headers, it has the syntax Set-Cookie:JSESSIONID=XXXXXXXXXXX
    When I inspect the HTTPResponse.Cookies collection, it is not there
    Does the cookie have to meet some other criteria other than set-cookie to be
    put into that collection?

    I didn't see an answer on any of the newsgroups or developer sites

    Thanks
    Jamie
    James Dixon, Sep 12, 2004
    #1
    1. Advertising

  2. James Dixon

    Joerg Jooss Guest

    James Dixon wrote:
    > I am hitting a j2ee website that is using cookies to maintain session
    > state. In the headers, it has the syntax
    > Set-Cookie:JSESSIONID=XXXXXXXXXXX
    > When I inspect the HTTPResponse.Cookies collection, it is not there
    > Does the cookie have to meet some other criteria other than
    > set-cookie to be put into that collection?


    HttpResponse.Cookies is a server-side class, which you cannot use in this
    context. I guess you mean HttpWebResponse? In this case, you need to
    associate a CookieContainer instance with your HttpWebRequest instance. This
    will allow you to track and manage cookies.

    Cheers,

    --
    Joerg Jooss
    Joerg Jooss, Sep 12, 2004
    #2
    1. Advertising

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. Robert Hanson
    Replies:
    4
    Views:
    8,527
    Yan-Hong Huang[MSFT]
    Aug 1, 2003
  2. Matthew Trunnell

    HttpResponse.ValidateFileRange()

    Matthew Trunnell, Feb 6, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    426
    Matthew Trunnell
    Feb 6, 2004
  3. =?Utf-8?B?QWxleCBLbGltYW50b3Y=?=

    HttpResponse Headers

    =?Utf-8?B?QWxleCBLbGltYW50b3Y=?=, Apr 2, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    848
    =?Utf-8?B?QWxleCBLbGltYW50b3Y=?=
    Apr 2, 2004
  4. _Who
    Replies:
    7
    Views:
    2,635
  5. Arturo 'Buanzo' Busleiman
    Replies:
    2
    Views:
    204
    Arturo 'Buanzo' Busleiman
    Dec 26, 2004
Loading...

Share This Page