When you use URL rewriting you will need to include the session ID in a
link. The method that associates a session ID with a URL is
HttpServletResponse.encodeURL. If you redirect the user to another page, the
method to associate the session ID with the redirected URL is called
HttpServletResponse.encodeRedirectURL.

After the first request, if the server detects that the browser supports
cookies then the URL is not rewritten. So you should turn off cookie support
in your browser.

Justy

----- Original Message -----
From: "cbarnes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 29, 2001 6:55 AM
Subject: Session management


> I am using the default session management in JSPs, but I want it to use
URL
> rewriting instead of cookies. In tomcat/conf/server.xml I changed the
> SessionInterceptor so that noCookies was set to true (it is false by
> default). I thought this would force it to use URL rewriting instead of
> cookies, but when I run my JSPs the URLs are not changed and I am getting
a
> new session each time I load a JSP. Can any one tell me what I should do
in
> order to use URL rewriting.
>
> Thanks,
> Catharine
>
>
===========================================================================
> 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