In Tomcat 4.0 set the cookie attribute of the CONTEXT element to false to
disable use of cookies. This will force URL rewriting if you need to store
objects in the session scope.

//from Tomcat 4.0 reference
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/context.html
cookies - Set to true if you want cookies to be used for session identifier
communication if supported by the client (this is the default). Set to false
if you want to disable the use of cookies for session identifier
communication, and rely only on URL rewriting by the application.

And as for automatically handling url rewriting. I'm assuming that u mean
not having to use encodeURL in your code.
No Application Server as far as I know does that. I was in a BEA Weblogic
6.0 class taught by a BEA Certified Trainer and he said that the only way to
do it properly was to use encodeURL. As a matter of fact, he recommended
(back by BEA e-docs) using encodeURL regardless of whether you are using URL
rewriting, sessions, or even straight cookies.
A look at the 6.1 e-docs shows that this has not changed in the new release:
http://e-docs.bea.com/wls/docs61///webapp/sessions.html#100770

-Tim

-----Original Message-----
From: Philip M. Meier [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 07, 2002 7:09 AM
To: [EMAIL PROTECTED]
Subject: Re: Sessions and URL-Rewriting?


Oh, I'm sorry Doug! I misunderstood your question! To my knowlodge only
BEA's Weblogic Application Server supports it automatically!

Bye,

Philip

> Thanks.
>
> Just to clarify: I've been told that some containers will do this
> *automatically*, that is, they will recognize links in JSP/HTML (hey, if
> browsers can do it, why not servlet containers) and insert the necessary
> info to handle session identification.  This is done, supposedly, without
> any effort on the part of the programmer to individually code the info.
Is
> this supported by Resin and Tomcat?

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to