Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 21706 invoked from network); 2 Dec 2004 15:14:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Dec 2004 15:14:07 -0000 Received: (qmail 45695 invoked by uid 500); 2 Dec 2004 15:13:51 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 45670 invoked by uid 500); 2 Dec 2004 15:13:50 -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 45629 invoked by uid 99); 2 Dec 2004 15:13:50 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mail01.gl-hub.net (HELO frost.gl-hub.net) (195.217.242.50) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 02 Dec 2004 07:13:48 -0800 Received: from localhost.localdomain (access01.gl-hub.net [195.217.242.33]) by frost.gl-hub.net (Postfix) with ESMTP id 8FBC7DF40 for ; Thu, 2 Dec 2004 15:14:13 +0000 (GMT) Received: from dhcp113.ilp.com (dhcp113.ilp.com [10.184.1.113]) by localhost.localdomain (8.12.8/8.12.8) with ESMTP id iB2FDhfG025049 for ; Thu, 2 Dec 2004 15:13:43 GMT From: Peter Mengell Reply-To: peterm@granada-learning.com Organization: Granada Learning To: "Tomcat Users List" Subject: Re: getting desperate here :) Date: Thu, 2 Dec 2004 15:13:44 +0000 User-Agent: KMail/1.6.2 References: <105772825.20041202090547@mindspring.com> In-Reply-To: <105772825.20041202090547@mindspring.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200412021513.44533.peterm@granada-learning.com> X-Granada_Learning-MailScanner-Information: Please contact the postmaster at granada-learning dot com for more information X-Granada_Learning-MailScanner: Found to be clean X-MailScanner-From: peterm@granada-learning.com X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, Are you invalidating the session from TomcatA before you redirect to TomcatB?, even a redirect should be able to clear the session cookie if you've invalidated the session. We do much the same thing sometimes and don't have this problem, the session.invalidate seems to be the only thing we seem to be doing differently. Pete On Thursday 02 December 2004 15:05, Alex Korneyev wrote: > Hello all, > > i have sent this one before, but i am hoping someone else has > had this particular problem. > __ > > > i am hoping someone has seen the following behavior. > > > TomcatA sends a redirect to TomcatB > > on the backend, I can see that TomcatB receives a JSESSIONID that was > originally assigned to it by TomcatA; > > i.e. cookie = JSESSIONID=6EF95FA9AA98E608C555E28875F57054; > > > I rewrite reset the jsession id ( see the code bellow ), but > > > on the next request i see this: > > cookie = JSESSIONID=6EF95FA9AA98E608C555E28875F57054; > JSESSIONID=2251830F6F64DEFC974C19C79F1EABAB > > for some reason using Mozilla works, but I.E. is the one that passes > 2 JSESSIONID variables. Thoughts? > > if (cookies != null && cookies.length > 0) > { > int len = cookies.length; > for (int i = 0; i < len; i++) > { > if > (cookies[i].getName().equalsIgnoreCase("jsessionid")) { > cookies[i].setMaxAge(-1); > cookies[i].setPath("/"); > _LOGGER.debug("COOKIE VALUE " + > cookies[i].getValue() ); _LOGGER.debug("session id: " + > request.getSession().getId() ); _LOGGER.debug(" comp" + ( > request.getSession().getId().equals(cookies[i].getValue()))); > if ( > request.getSession().getId().equals(cookies[i].getValue())) { > _LOGGER.debug("equal"); > > response.addCookie(cookies[i]); } > else > { > _LOGGER.debug("not equal"); > Cookie sessionCookie = new > Cookie("JSESSIONID", request.getSession().getId()); > > response.addCookie(sessionCookie); } > foundCookie = true; > _LOGGER.debug("updated session > cookie"); > > } > } > } > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org