You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Stephanos Piperoglou <sp...@bolero.net> on 2002/05/07 17:34:50 UTC

Disabling URL Rewriting and relying on cookies

I'm developing a Web App on Tomcat 3.2.4 (and Struts 1.0.2) and I've
been using URL rewriting throughout to make everything nice and
relocateable. As has been pointed out before on this list, the first
time a browser accesses the web-app, the session id cookie is set but
cannot yet be retrieved so URL rewriting is performed even though the
browser supports cookies.

This causes all kinds of problems I want to avoid. The
";jsessionid=foobar" method is just too clunky and doesn't work well
with several other bits of the whole that don't recognise it as a query
string (a good example is when I use the Struts <html:rewrite> tag to
set the codebase for an applet; also IE's visited links, autocomplete
passwords and other history-related functions don't work because IE
thinks it's a different page, other exaples too), and I desperately want
to disable it. Is there any way to disable session tracking via URL and
require cookies instead? They're a hard requirement for the webapp
anyway (for other reasons).

-S.


_____________________________________________________________________
This message has been checked for all known viruses by the 
MessageLabs Virus Scanning Service.