I don't think your new hypothesis is correct. It is true that the
browser will return cookies based on the URL (See the HTPP State spec,
http://www.ietf.org/rfc/rfc2109.txt?number=2109 (old version, Section 4
and 5) or http://www.ietf.org/rfc/rfc2965.txt?number=2965 (new spec,
Section 3 and 4). However, all browsers should behave the same with
respect to the same set of URLs. That is, if the cookie to be sent by
the browser is different for any two URLs, then Netscape 4, IE 4,
Netscape 6, and IE 5 should all treat the cookie in the same manner.

Okay, that is the way it is supposed to work. It is still possible, I
suppose, that Netscape 4 is not properly following the specification.
However, based on my experience of using Netscape 4 with a multi-frame,
multi-window application where there was never a problem with sessions,
I still think Netscape 4 is not the problem, and that there is something
else going on. On the other hand, if it works with other browsers and
not Netscape 4, then this points to Netscape 4 as the problem. Can you
tell: I'm stumped.

One thing you might try is checking the cookies received by the browser
for each page. In each page, add the following javascript function:

function showCookie() {
  alert(document.cookie);
}

And then make this change to the body tag:

<body onload=showCookie();>

K Mukhar

Stéphane Cloutier wrote:
>
>     The browser is really configure to accept cookies (verifying this was
> the minimum that I could have done).  I'd done some other tests to find the
> problem cause but I was on the wrong track it seems.  After your reply, I
> verify the session Id receive by my servlet and it seems that it was the
> same for all the frames requests, confirming what you said.  However, I
> notice that the session Id change from the 1st page (return by the servlet)
> to the 2nd page (request by the client).
>
>     Here's my new hypothesis:
>
>     Could it be possible that since the session values (at login time) are
> set by a different servlet than the one returning the other pages (and
> accessing the previous values), Netscape 4 see this as two different servers
> and don't send the cookie receive from the 1st servlet to the 2nd one?
>
>      For example, can Explorer see "www.yahoo.com/ServletA" and
> "www.yahoo.com/ServletB" as 1 server and use the same cookies for both while
> Netscape see this as 2 servers and maintain different cookies for both?

___________________________________________________________________________
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