Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 81643 invoked from network); 24 Feb 2006 22:50:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Feb 2006 22:50:05 -0000 Received: (qmail 14057 invoked by uid 500); 24 Feb 2006 22:49:51 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 14043 invoked by uid 500); 24 Feb 2006 22:49:51 -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 14032 invoked by uid 99); 24 Feb 2006 22:49:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2006 14:49:51 -0800 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [206.190.53.26] (HELO smtp101.plus.mail.re2.yahoo.com) (206.190.53.26) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 24 Feb 2006 14:49:50 -0800 Received: (qmail 84451 invoked from network); 24 Feb 2006 22:49:29 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:In-Reply-To:X-MimeOLE:Thread-Index; b=oHJQvZD0Ktd+if+gTi58Qi80Pp3xRzYpt43vBIRfs6cfOIEzt4DstUvVyFvVkHGtMmYnylWpgmauEpyBbgm021YtVKsk/6JA0wwsPN4PXrEkF76a57e9niNqy0aI0UW+AOzdN3cPmsBJgc+igrp/5y9fsv6qgpqE0xMek+Ezr2Q= ; Received: from unknown (HELO tim) (timlucia@12.160.199.10 with login) by smtp101.plus.mail.re2.yahoo.com with SMTP; 24 Feb 2006 22:49:29 -0000 From: "Tim Lucia" To: "'Tomcat Users List'" Subject: RE: mod_rewrite losing session Date: Fri, 24 Feb 2006 17:49:28 -0500 Message-ID: <00b301c63994$91f58e90$3a0119ac@tim> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <43FF7FA3.40306@maniatv.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-Index: AcY5jHi12CkVrgboRs2jyWH83Ane+gACAFpg X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N And how would one do that? The cookie JSESSIONID is automagically maintained for you. -----Original Message----- From: Pete Lamborne [mailto:pete@maniatv.com] Sent: Friday, February 24, 2006 4:50 PM To: Tomcat Users List Subject: Re: mod_rewrite losing session Anyone know the quick and easy way to do this? pete Filip Hanik - Dev Lists wrote: > The easiest thing would be to tell Tomcat to always use "/" as a path > for the JSESSIONID cookie. > that should take care of it. > Filip > > Tim Lucia wrote: > >> Happens with mod_jk -- I am using that as well. The issue is >> security. You (and I) are seeking to violate the rules, to a degree, >> and therein lies the problem. >> >> I suspect you can write a filter, that on the way out, replaces the >> setCookie header with path=/ where path=/someContext, but I haven't >> tried it yet. I was hoping for a plugin or configuration option way >> of doing it. >> >> Since I got no (helpful) response last time, and nobody has chimed in >> this time, I don't think it is readily doable. >> >> Tim >> >> >> -----Original Message----- >> From: Pete Lamborne [mailto:pete@maniatv.com] Sent: Friday, February >> 24, 2006 1:41 PM >> To: Tomcat Users List >> Subject: Re: mod_rewrite losing session >> >> Hey Tim, >> Thanks for the great response. At least I know that I'm not missing >> something really obvious. >> >> I wonder if we could configure Tomcat to write the cookie without the >> context? >> >> Or if there is some other mechanism in httpd.conf that we could use >> to control how the cookie gets set... >> >> I find it hard to believe that alot of people have not run into this >> issue yet. Maybe everyone's still using mod_jk and have not migrated >> to mod_proxy_ajp yet... >> >> pete >> >> >> >> Tim Lucia wrote: >> >> >> >>> Yes. I posted a similar question not long ago. I wanted to know >>> how to preserve the session under exactly this case (my specific >>> need was to have a version in the Tomcat path, but hide that context >>> / version >> >> >from the user.) >> >> >>> I can tell you why it's NOT preserving it. Tomcat sets the cookie >>> JSESSIONID for host=www.website.com, path >>> /tomcatWebappName/someServlet. >>> The browser sees the cookie for that path on the response (check - >>> it is set). You then ask for /someServlet and there is no cookie >>> with that path (the hosts match, of course) and so the browser does >>> not send the cookie along. No cookie (JSESSIONID), no session. >>> >>> Tim >>> >>> P.s. see >>> http://marc.theaimsgroup.com/?l=tomcat-user&m=113761657202592&w=2 >>> >>> >>> >>> >>> >>> >>>> -----Original Message----- >>>> From: Pete Lamborne [mailto:pete@maniatv.com] >>>> Sent: Thursday, February 23, 2006 7:21 PM >>>> To: Tomcat Users List >>>> Subject: mod_rewrite losing session >>>> >>>> >>>> Hi all, >>>> I am having a problem when using mod_rewrite to hide the Tomcat >>>> webapp/context name, where it spawns a new session with each request. >>>> >>>> I am using apache2.2 and mod_proxy_ajp to dispatch the request and >>>> tomcat 5.5.9 >>>> >>>> So if I try to send this URL: http://www.website.com/someServlet >>>> >>>> to >>>> >>>> http://www.website.com/tomcatWebappName/someServlet >>>> >>>> with mod_rewrite, it's a new session with every request. >>>> >>>> Any ideas? >>>> thanks >>>> pete >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------- >>>> -- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >>>> For additional commands, e-mail: users-help@tomcat.apache.org >>>> >>>> >>>> >>>> >>> >>> -------------------------------------------------------------------- >>> - To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >>> For additional commands, e-mail: users-help@tomcat.apache.org >>> >>> >>> >>> >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: users-help@tomcat.apache.org >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: users-help@tomcat.apache.org >> >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org