Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 6645 invoked from network); 28 Sep 2007 19:58:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Sep 2007 19:58:27 -0000 Received: (qmail 5346 invoked by uid 500); 28 Sep 2007 19:58:09 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 5323 invoked by uid 500); 28 Sep 2007 19:58:08 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 5312 invoked by uid 99); 28 Sep 2007 19:58:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Sep 2007 12:58:08 -0700 X-ASF-Spam-Status: No, hits=-2.0 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [161.114.21.104] (HELO ccerelbas01.cce.hp.com) (161.114.21.104) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Sep 2007 19:58:06 +0000 Received: from G3W0059.americas.hpqcorp.net (g3w0059.americas.hpqcorp.net [16.232.1.16]) by ccerelbas01.cce.hp.com (Postfix) with ESMTP id DE17334166 for ; Fri, 28 Sep 2007 14:57:23 -0500 (CDT) Received: from G3W0068.americas.hpqcorp.net ([16.232.1.138]) by G3W0059.americas.hpqcorp.net with Microsoft SMTPSVC(6.0.3790.1830); Fri, 28 Sep 2007 19:56:41 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C80209.914695AD" Subject: [Axis2]: Duplicate Cookie header in requests from Axis2 client Date: Fri, 28 Sep 2007 19:55:48 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [Axis2]: Duplicate Cookie header in requests from Axis2 client Thread-Index: AcgCCZD0kqTBH72bS02LhVuLfXrZIA== From: "Merritt, Norris" To: X-OriginalArrivalTime: 28 Sep 2007 19:56:41.0118 (UTC) FILETIME=[B005A3E0:01C80209] X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C80209.914695AD Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable My Axis2 client is somehow sending TWO cookie headers on each POST request, with slightly different formatting but the same JSESSIONID:=20 =20 Cookie: JSESSIONID=3D69C868C8CC13EA14A5E8846FC87E2EB8 Cookie: $Version=3D0; JSESSIONID=3D69C868C8CC13EA14A5E8846FC87E2EB8; $Path=3D/myservice =20 This is a problem for me because occasionally my server invalidates the JSESSIONID I am using if too much time elapses between requests and fails the operation due to an invalid JSESSIONID. In this case I need to resend the failed request without any Cookie header, whereupon the server will create a new session and issue a new JSESSIONID. =20 I succeeded in getting rid of ONE of the Cookie headers by doing this: =20 HttpClient httpClient =3D (HttpClient) msgCtx.getConfigurationContext() .getProperty(HTTPConstants.CACHED_HTTP_CLIENT); =20 httpClient.getState().clearCookies(); =20 This gets rid of the Cookie header with the $Version and $Path, but not the other one. So when I retry the request, I am still sending a Cookie header with an invalid JSESSIONID. Does anyone know where is this duplicate cookie header coming from, and how I can get rid of it? ------_=_NextPart_001_01C80209.914695AD Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

My Axis2 client is somehow sending TWO cookie headers = on each POST request, with slightly different formatting but the same = JSESSIONID:

 

Cookie: JSESSIONID=3D69C868C8CC13EA14A5E8846FC87E2EB8

Cookie: $Version=3D0; JSESSIONID=3D69C868C8CC13EA14A5E8846FC87E2EB8; = $Path=3D/myservice

 

This is a problem for me because occasionally my = server invalidates the JSESSIONID I am using if too much time elapses between = requests and fails the operation due to an invalid JSESSIONID.  In this case = I need to resend the failed request without any Cookie header, whereupon the = server will create a new session and issue a new = JSESSIONID.

 

I succeeded in getting rid of ONE of the Cookie = headers by doing this:

 

          =      HttpClient httpClient =3D (HttpClient) = msgCtx.getConfigurationContext()

          =        .getProperty(HTTPConstants.CACHED_HTTP_CLIENT);

          =          

         &= nbsp;     httpClient.getState().clearCookies();

 

This gets rid of the Cookie header with the $Version = and $Path, but not the other one. So when I retry the request, I am still = sending a Cookie header with an invalid JSESSIONID. Does anyone know where is this duplicate cookie header coming from, and how I can get rid of = it?

------_=_NextPart_001_01C80209.914695AD--