-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
We had some problems with Netscape loosing session information, it turned to be an
inconsitancy in the FQDN of the server, e.g.
mixing www.fashionjunction.com and www.me.net or the ip address. Initially we had
redirects going to
"http://www.me.com/servlet/....." but we replaced all these with "/servlet/...", also
when we explicitly specified the port number
(e.g. http://www.me.com:80) we had problems.
We thought we were doing "the right thing" by putting in the redirect / form action
code something like:
e.g. to get from a doGet() to the same servlet's doPost().
req.getScheme() + "://" + req.getServer() + ":" + req.getServerPort() +
req.getServletPath()
but we replaced all this with just req.getServletPath() and it cured all the session
problems.
Hope this is of some help,
..Chris.
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Grant
> > Jennings
> > Sent: Friday, September 17, 1999 1:58 PM
> > To: [EMAIL PROTECTED]
> > Subject: Netscape, JServ, Sessions & Cookies
> >
> >
> > -----------------------------
> > Please read the FAQ!
> > <http://java.apache.org/faq/>
> > -----------------------------
> >
> > I have been looking through the archives of this list and noticed that
> > some people have been having trouble with Netscape and
> > session cookies,
> > but did not see a solution.
> >
> > Since I have now encountered the same problem, I was
> > wondering if anyone
> > had sorted this out, or at least identified the bug.
> >
> > Here is the actual problem.
> >
> > I have one servlet that creates a session then redirects to another
> > servlet. The next servlet, instead of finding the already created
> > session, creates a new one.....every time (with NS, not with IE). As a
> > result, session data that is set in servlet1 is not available
> > to servlet
> > 2. Quite annoying really. Of course, the SessionExample that
> > comes with
> > JSDK works fine.
> >
> > Anyway, I am _extremely_ interested in getting a solution to this
> > problem. It is clear to me that it is an issue with the way Netscape
> > handles cookies and possibly something to do with redirects.
> >
> > To answer some of the questions that were raised in earlier posts.
> > 1. req.getSession(true) is the first thing called in the servlets
> > 2. Both (all) servlets are in the same zone
> > 3. Server Version: Apache/1.3.6 (Unix) ApacheJServ/1.0 mod_ssl/2.3.5
> > OpenSSL/0.9.3a
> >
> > If someone knows the cause of this problem, please let me
> > know, so that
> > I can try and find a solution. Better still, if someone has the
> > solution.....
> >
> >
> > Grant Jennings
> > Netnation
> >
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]