Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 56357 invoked from network); 2 Jul 2010 01:00:31 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Jul 2010 01:00:31 -0000 Received: (qmail 46613 invoked by uid 500); 2 Jul 2010 01:00:28 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 46435 invoked by uid 500); 2 Jul 2010 01:00:27 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 46425 invoked by uid 99); 2 Jul 2010 01:00:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jul 2010 01:00:27 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [76.96.62.48] (HELO qmta05.westchester.pa.mail.comcast.net) (76.96.62.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jul 2010 01:00:19 +0000 Received: from omta01.westchester.pa.mail.comcast.net ([76.96.62.11]) by qmta05.westchester.pa.mail.comcast.net with comcast id coGH1e0070EZKEL55ozzzm; Fri, 02 Jul 2010 00:59:59 +0000 Received: from [192.168.1.106] ([76.19.232.93]) by omta01.westchester.pa.mail.comcast.net with comcast id cozz1e00321ZwD03MozzVc; Fri, 02 Jul 2010 00:59:59 +0000 Message-ID: <4C2D3A0D.2090500@christopherschultz.net> Date: Thu, 01 Jul 2010 20:59:57 -0400 From: Christopher Schultz User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: using Servlet Filter to rewrite domain of JSESSIONID cookie? References: <4C2BEEA8.9090404@christopherschultz.net> <4C2C5AD8.2080002@kippdata.de> <4C2D118B.6@ice-sa.com> In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Nikita, On 7/1/2010 6:37 PM, Nikita Tovstoles wrote: > I borrowed "sub-domain" from Google Analytics terminology. I have one > server, running one tomcat instance with one virtual host. That host is > running one app - a JS/html widget that is embedded on multiple sites. > > We need to track usage per-deployment (per site embedding the wiget). For > (google) analytics purposes, the easiest way to do so is to have a different > (sub)domain per deployment. So the same tomcat instance is responding to > requests for site1.widget.com, site2.widget.com, etc. > > a user may interact with 2 widget deployed on 2 different sites (and thus > served from different (sub)domains) within 30 minutes. It is for this case > that we want user to share the same HttpSession: > > - go to some site A where our widget is deployed at site1.widget.com > - go to some other site B where our widget is deployed at site2.widget.com > - reuse the same JSESSIONID because its' domain is set to ".widget.com" This sounds like a job for a non-JSESSIONID cookie that is created from your own code. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwtOg0ACgkQ9CaO5/Lv0PDlagCfTBxbqDKGE4bmQZG3R2ScYnsC oN8Aniy2zW1cIhEab+18E7DvqPC3UsnF =N0Qc -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org