But it will not work if you are using Apache with Tomcat. It only works with
Tomcat standalone or Apache and Tomcat and cookies turned on. However, if
the client disables cookies... your site won`t work for him.
-----Ursprungliche Nachricht-----
Von: Wolle [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 19. April 2001 10:36
An: [EMAIL PROTECTED]
Betreff: Re: Can Sessions be tracked via URL-rewriting?


Hei,
You have to do it in your Servlet/JSP
with the Methode encodeURL or encodeRedirectURL.
response.encodeURL("/test/URL")
This have you to do with all your Links in the Servelt.
Tomcat will automaticly choose the URI-Rewriting if the cookies are
disabled.
When the cookies are enabled, the encodeURL Methode won't change the URL.
So you don't have to handle it if there cookies or not.

Greetings
Michael

Robert Zazueta wrote:

> Nope. Where would I need to do that? In all of my servlets, or in the
> Tomcat code?
>
> -----Original Message-----
> From: William Kaufman [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 18, 2001 1:42 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Can Sessions be tracked via URL-rewriting?
>
> Are you asking Tomcat to do URL re-writing (by calling
> HttpServletResponse.encodeURL())?
>
>                                                             -- Bill K.
>
> > -----Original Message-----
> > From: Robert Zazueta [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, April 18, 2001 1:35 PM
> > To: [EMAIL PROTECTED]
> > Subject: Can Sessions be tracked via URL-rewriting?
> >
> >
> > Fresh out of the "box", Tomcat appears to write the jsession ID to the
> > users cookies exclusively, making those who don;t have
> > cookies turned on
> > for whatever reasons lose their session.
> >
> > Is there a way to configure Tomcat so that it writes the jsession via
> > URL-rewriting for those folks without cookies turned on? Or even just
> > replaces the jsession cookie with URL-rewriting entirely?
> >
> > Thanks!
> >
> > Rob Z.
> >



Reply via email to