Ray Power wrote:

> >         public java.lang.String encodeURL(java.lang.String url)
> >         // Encodes the specified URL by including the session ID
> > in it, or,
> > if encoding is not needed, returns the URL unchanged.
> >
>
> I'm playing with struts 0.5 on tomcat 3.1 with IE5 & cookies enabled.
> How do I get tomcat to return URLs unchanged?
>

Make a second request :-).

When a session is first created, Tomcat has no way to know if cookies are
enabled or not, so it sends the session ID both ways (as cookies and as
rewritten URLs) in that first response.  If the session ID comes back in as a
cookie, Tomcat says "aha, this user supports cookies so I will stop rewriting
the URL."  Otherwise, it continues using rewriting.

Note:  Tomcat 3.1 has a very large number of bugs (relative to the most recent
beta of Tomcat 3.2).  I would suggest you upgrade.

>
> Thanks,
> Ray

Craig


Reply via email to