Jason Gilbert wrote:
> On Tue, 2 Mar 1999, Shaoping Zhou wrote:
>
> > Yes, anotherURL goes sth. like this:
> > http://hostxxx.company1.com:8080/servletzone1/anotherServlet
>
> So what's the URL of the servlet doing the redirection?
>
The one that does the redirection is:
http://hostxxx.company1.com:8080/servletzone1/initialServlet
Note that they are in the same servlet zone.
In my situation, I have to create a session once the user login and pass the
authentication,
and bind the session to a given name, and then do the redirection. My testing results
make
me conclude that Netscape does not send the cookie along with the new request which is
based
on the redirection response from the initialServlet.
After some careful thought, I decided that this particular instance of problem should
really
be directed to Netscape, and it should not complicate the development of JServ. again,
just
my 2c.
regards,
-shaoping
>
> I think I understand and if I do then I'm doing exactly what you
> say does not work using Netscape 4.08. However, it does have the
> small change that I made to not add the session cookie to the
> redirected URL query string if it's using cookies. This did not
> work when it was adding the session to the query string. Well it
> would work the first time you accessed it but reloading on a page
> w/ the session in the query string would put me in an endless
> loop of trying to get the session setup. must be something with
> having an invalide session requested???
>
> Anyways, in order for it to work you must be accessing servlets
> in the same zone.
>
> http://hostname:8080/zone/thisServlet
> http://hostname:8080/zone/redirectedServlet
>
> If the servlets are in different zones it's not going to work at
> all since I believe the available sessions are separated across
> zones. This was the other part of my first message.
>
> > The bug is that: Netscape 4.x can not get any data from
> > http://hostxxx.company1.com:8080/servletzone1/anotherServlet. The reason why is
>cannot
> > get any response back from anotherServlet is that anotherServlet needs the session
> > information which is embeded in a cookie, and that cookie is not sent back to
> > anotherServlet by Netscape4.x after the redirection.
>
> Jason Gilbert | http://www.scott.net/~jason/
> ------------------------------------------------------
> I wish I could make the garbage collector thread in my
> brain less aggressive.
>
> ----------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://www.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
--
Metaphase Technology Group | voice: (651) 482-2966
4201 Lexington Ave N, Arden Hills, MN 55126
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://www.working-dogs.com/>
Problems?: [EMAIL PROTECTED]