Duncan,

The problem is actually with req.getCookies() (which is embedded within
req.getSession())
It returns a zero length array whenever it is presented with a cookie value
that has an embedded equals sign (=)
That's the problem.
The post below may be a false alarm

--Olu E.

> -----Original Message-----
> From: James Duncan Davidson [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, June 30, 1999 1:02 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: A bug in the session API?
>
> It does sound like a bug.. We'll take a look.
>
> .duncan
>
> "Emuleomo, Olu (PME)" wrote:
> >
> > Hi,
> >
> > I believe this may be a bug in the session api.
> > req.getSession(true)
> >
> > creates a cookie  with name "session",  value =
> [SIW3DZIAAAAAFET3MEFAAAA]
> > but the domain is NULL and the path is NULL.
> > Now, this is not a problem if you dont have cookies with the domain of
> your
> > server
> > (the server that generated the cookie) already stored in your cookies
> file.
> > However, if you do, the user agent i.e. Netscape/IE does not send the
> cooie
> > called
> > "session" to your servler, so the servlet ALWAYS THINKS YOU DONT HAVE A
> > SESSION
> > and creates a new one!
> >
> > Sun staff, can you verify this? I believe this may be a bug since I
> expect
> > the domain to be ".foo.com" or
> > something along those lines, but NOT null.
> >
> > --Olu E.
> >
> >
> __________________________________________________________________________
> _
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to