Here is from org.apache.catalina.connector.HttpResponseBase:
/**
* Encode the session identifier associated with this response
* into the specified redirect URL, if necessary.
*
* @param url URL to be encoded
*/
public String encodeRedirectURL(String url) {
if (isEncodeable(toAbsolute(url))) {
HttpServletRequest hreq =
(HttpServletRequest) request.getRequest();
return (toEncoded(url, hreq.getSession().getId()));
} else
return (url);
}
See this which does the Tomcat servlet container's encoding:
org.apache.catalina.connector.HttpResponseBase.toEncoded()
-AAron
From: Tim Funk <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Subject: Re: session across different domains ?
Date: Sat, 11 Jan 2003 13:15:48 -0500
When you link to the new domain, URL encode the session id into the link. I think either the servlet spec or tomcat docs should tell you you can do this.
-Tim
Albrecht Berger wrote:
Hello,
is there any way to keep the sessions when changing the domain ? I have only one webapp, but it is distributed acrosss
different domains.
Thx
berger
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
