To the best of my knowledge, there is no mechanism defined in the spec that allows you to force using URLRewriting rather than cookies. Some vendors (BEA's Weblogic5.1, for instance) may let you do that, some won't. However, you can implement such a mechanism yourself: Use a Map stored in the ServletContext object that holds keys of session id's (that you will generate yourself) and values that are name-value containers (maps, again). supply some utility methods for embedding the session_id parameter in a cookie or a url, and you've got yourself exactly what needed.
zm. -----Original Message----- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Philip M. Meier Sent: Saturday, January 05, 2002 2:59 PM To: [EMAIL PROTECTED] Subject: Re: Sessions and URL-Rewriting? Hello Geert! There's no special reason, but I thought, that url-rewriting is better until! Why is it better? Is there a method or whatever to tell the session-object to use url-rewriting and no cookies? Greetings, Philip > Why? > Cookies are better than URL Rewriting. > > Geert Van Damme > > > I'd like to make use of the session-object, but I don't want the > > session-object to use cookies, but instead to use URL-rewriting! > > Is there a > > method or whatever to > > tell the session-object to use url-rewriting and no cookies? > > > > Thanks in advance, > > > > Philip > > =========================================================================== 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
