#13 Cookies and JSP

open
nobody
None
5
2002-10-12
2002-10-12
Juan
No

I have a problem with snoopy not reading (or assigning)
the cookies that come from a jsp.
The headers i get are these, and u can see there's 2
cookies set there, but when I check the cookies array it's
empty.

Date: Sat, 12 Oct 2002 15:01:44 GMT
Server: Apache/1.3.26 (Unix) mod_jk/1.1.0
mod_ssl/2.8.10 OpenSSL/0.9.6d
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Pragma: no-cache
Refresh: 60
Set-Cookie2:
JSESSIONID=530jrdrjg1;Version=1;Discard;Path="/CEL"
Set-Cookie: JSESSIONID=530jrdrjg1;Path=/CEL
Connection: close
Content-Type: text/html

For the moment i wrote some code to get the cookie
from those 2 lines and set them into snoopy's array, but
i wish there'd be an easier solution.

Discussion

  • Justin Mitchell

    Justin Mitchell - 2004-01-24

    Logged In: YES
    user_id=299204

    Can you post the code, or send it to me? I'm having the same
    problem (logging into ebay.com).

     
  • Nobody/Anonymous

    Logged In: NO

    id don't think that "Set-Cookie2" is a valid http header, the
    function fetching the cookies doesn't recognize it. but i can't
    see any reason why it doesn't find the second cookie (which
    should overwrite the first one). maybe some type of server
    configuration error?

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks