Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 10101 invoked from network); 22 Aug 2008 18:10:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Aug 2008 18:10:35 -0000 Received: (qmail 85105 invoked by uid 500); 22 Aug 2008 18:10:31 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 85086 invoked by uid 500); 22 Aug 2008 18:10:31 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "JMeter Users List" Reply-To: "JMeter Users List" Delivered-To: mailing list jmeter-user@jakarta.apache.org Received: (qmail 85075 invoked by uid 99); 22 Aug 2008 18:10:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Aug 2008 11:10:31 -0700 X-ASF-Spam-Status: No, hits=-1.2 required=10.0 tests=RCVD_IN_DNSWL_MED,RCVD_NUMERIC_HELO,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [137.191.227.45] (HELO prim-smtp-3.revenue.ie) (137.191.227.45) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 22 Aug 2008 18:09:31 +0000 Received: from localhost (localhost.test.com [127.0.0.1]) by prim-smtp-3.revenue.ie (Postfix) with ESMTP id 608C67DC98A for ; Fri, 22 Aug 2008 19:09:59 +0100 (IST) X-Virus-Scanned: by Copperfasten Mail Firewall at revenue.ie Received: from revjnrdcont03 (unknown [25.4.1.90]) by prim-smtp-3.revenue.ie (Postfix) with ESMTP id 1C7297DC988 for ; Fri, 22 Aug 2008 19:09:57 +0100 (IST) Received: from localhost ([25.4.1.89]) by revjnrdcont03 with InterScan Message Security Suite; Fri, 22 Aug 2008 19:09:57 +0100 Received: from 25.3.1.211 ([25.3.1.211]) by localhost (PostX Enterprise 5.3.1 SMTP Adapter) with SMTP ID 489 for ; Fri, 22 Aug 2008 19:09:57 +0100 (BST) Received: from REVMAIL02.RevenueDomain.ie ([25.34.1.72]) by savgw2.revenuedomain.ie (SMSSMTP 4.1.11.41) with SMTP id M2008082219095727867 for ; Fri, 22 Aug 2008 19:09:57 +0100 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 Subject: RE: Session ID changes for a POST request Date: Fri, 22 Aug 2008 19:09:57 +0100 Message-ID: <2AB2B3C160BFC14CB0D94D437513C3BA91B382@revmail02.revenuedomain.ie> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Session ID changes for a POST request Thread-Index: AckEXjsdafAaJ7VTTQetrM5yjV+oZAAI0dEg From: "Fitzpatrick, Adrian" To: "JMeter Users List" X-Virus-Checked: Checked by ClamAV on apache.org Hi, It looks to me that you may have recorded the JSESSIONID "92714......."= into the script when you originally created the script, so thats why its being sent with every request. If you can remove this jsession portion of the URL from you HTTP sampler, the correct JSESSION which is being included in the cookie data should be picked up instead.=20 Alternatively, if your application and/or app server needs the JSESSION id= to be in the URL, you may be able to change the URL in the HTTP sampler so= that it=20 looks something like this - http://localhost:8080/gate.do;jsessionid=3D${JSESSIONID}?action=3Dindex i.e. its using a variable to fill in the correct value. However im not sure if this is the correct syntax to get the value of a cookie as a variable,= you can look up how to this (am sure its possible) if that doesnt work. Regards, - Adrian -----Original Message----- From: Chris Hall [mailto:chrishall_ie@yahoo.com] Sent: 22 August 2008 14:51 To: jmeter-user@jakarta.apache.org Subject: Session ID changes for a POST request ************************************* This e-mail has been received by the Revenue Internet e-mail service. (IP) ************************************* Hi all, I've been getting problems with Session ID's. I've added a HTTP cookie manager, which seems to have resolved most of my problems, but I@ve come across an instance where the session ID is not= being passed correctly to the URL. ie GET request #1:=20 GET http://localhost:8080/welcome.do?action=3Dform =20 Cookie Data: JSESSIONID=3D195374BBEEE86BB9633B1CF93B48A03C Request Headers: Connection: keep-alive but on the next page POST request #1: POST http://localhost:8080/gate.do;jsessionid= =3D927141B2B85E34E8F586B1FEC7CED71C?act ion=3Dindex POST data: Name=3DMyName&Password=3Dpass Cookie Data: JSESSIONID=3D195374BBEEE86BB9633B1CF93B48A03C Request Headers: Connection: keep-alive Content-Length: 294 Content-Type: application/x-www-form-urlencoded >From here, you can see the cookie has the same session ID for both= requests, except for the post, the url passed is incorrect. am i missing something simple here? I'm very new to JMeter it has to be said. Rgds, Chris --=20 View this message in context: http://www.nabble.com/Session-ID-changes-for-a-POST-request-tp19107615p1910= 76 15.html Sent from the JMeter - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org ************************ This message has been delivered to the Internet by the Revenue Internet= e-mail service (OP) ************************* --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org