Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 76377 invoked from network); 11 Jan 2003 23:52:22 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 11 Jan 2003 23:52:22 -0000 Received: (qmail 6987 invoked by uid 97); 11 Jan 2003 23:53:23 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 6961 invoked by uid 97); 11 Jan 2003 23:53:20 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 6945 invoked by uid 98); 11 Jan 2003 23:53:20 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) X-Originating-IP: [68.58.126.22] From: "AAron nAAs" To: tomcat-user@jakarta.apache.org Bcc: Subject: Re: session across different domains ? Date: Sat, 11 Jan 2003 18:51:57 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 11 Jan 2003 23:51:57.0578 (UTC) FILETIME=[6D2ABEA0:01C2B9CC] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I think you will have to code specifically for Tomcat. The only way to get jsession encoded into your string is with Request.encodeURL or Request.encodeRedirectURL, but they won't do it because Tomcat will determine that encoding wasn't necessary, and will return your string as-is. "isEncodeable()" is quite strict in Tomcat. 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 >Reply-To: "Tomcat Users List" >To: Tomcat Users List >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: > >For additional commands, e-mail: > _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- To unsubscribe, e-mail: For additional commands, e-mail: