Return-Path: X-Original-To: apmail-jmeter-user-archive@www.apache.org Delivered-To: apmail-jmeter-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AAC0E69A for ; Fri, 24 Aug 2012 21:36:03 +0000 (UTC) Received: (qmail 15398 invoked by uid 500); 24 Aug 2012 21:36:02 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 15371 invoked by uid 500); 24 Aug 2012 21:36:02 -0000 Mailing-List: contact user-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JMeter Users List" Delivered-To: mailing list user@jmeter.apache.org Received: (qmail 15361 invoked by uid 99); 24 Aug 2012 21:36:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Aug 2012 21:36:02 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of shettyd@gmail.com designates 209.85.214.171 as permitted sender) Received: from [209.85.214.171] (HELO mail-ob0-f171.google.com) (209.85.214.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Aug 2012 21:35:57 +0000 Received: by obqv19 with SMTP id v19so5665338obq.2 for ; Fri, 24 Aug 2012 14:35:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=+kXUji7kSxuM0dcnsQ66VDUHyvR7UHC1PDmgjc0n+Do=; b=wLY4bz7hN0+X2v3hQYbJ46mtIJPAkYu6zV8MucLP3d5kQ230q3k0CFX6tOaLmXcr9B JxYngh+yXtDB1isZntHLfc9BM/SPqS1IRDXDPHncjulGUaW4vES2pyWpmDcvZ7g30Qpi fw/khtcL6gJdtUJAKYJ9tJHHuMbWUxDruvRTnv7nuIRedY1Z1mIC6E5/0mbSFhIqUAXH uK6Yj4Wvmr7fLAMMsmWObnXL3vGn/JUwCXL39G7yJRXVYW/iWPXUPQHF+o003yATazPS OMmIU6f8TcORW3EkKttmI9SuPkaLI9xsFN3oTyjrMHOHaIryDYNTUmqtIhsTM4/sFSXu +0ng== MIME-Version: 1.0 Received: by 10.182.86.225 with SMTP id s1mr5141529obz.73.1345844136389; Fri, 24 Aug 2012 14:35:36 -0700 (PDT) Received: by 10.182.91.164 with HTTP; Fri, 24 Aug 2012 14:35:36 -0700 (PDT) In-Reply-To: References: Date: Fri, 24 Aug 2012 14:35:36 -0700 Message-ID: Subject: Re: Need help : I have added cookie manager, but still the Session id for each request is different. From: Deepak Shetty To: JMeter Users List Content-Type: multipart/alternative; boundary=f46d0444e9d1ac2a7a04c809c159 X-Virus-Checked: Checked by ClamAV on apache.org --f46d0444e9d1ac2a7a04c809c159 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable hi it does look like you omitted something. For e.g. is there no path in the Set-Cookie header? (I cant check the specification right now but If I remember correctly by default the cookie is scoped to the path you accessed from unless you explicitly say otherwise) regards deepak On Fri, Aug 24, 2012 at 2:31 PM, sharmila Renganathan wrote: > Hey Shmuel, > > I did not omit any information. > Also,I have the http cookie manager at the top. > What is that http implementation? > > Regards, > Sharmila R > > On Fri, Aug 24, 2012 at 4:39 PM, Shmuel Krakower > wrote: > > > Seems like in the second request the jsession cookie is not set in the > > headers list (or you omitted it). Make sure the cookie manager is at th= e > > top level of the thread group for the two samplers to share cookies. > > > > Also make sure you are using same http implimentation on both samplers. > > > > Shmuel. > > =D7=91=D7=AA=D7=90=D7=A8=D7=99=D7=9A 2012 8 24 04:54, =D7=9E=D7=90=D7= =AA "sharmila Renganathan" < > sharmila1.r@gmail.com > > >: > > > > > Request1 data: > > > POST > > > > > > > > > https://test-wmos1.test.liquidation.com:11001/ucl/login/jsp/securityRedir= ect.jsp > > > > > > POST data: > > > selectedLocaleId=3Dnull&j_username=3Dhmamidipelli&j_password=3D20%23R= edfish > > > > > > Cookie Data: > > > $Version=3D0; scope_deploymentID=3D29-Jul-2012; $Path=3D/; $Domain=3D= . > > > test.liquidation.com > > > > > > Request Headers: > > > Accept-Language: en-IN > > > Content-Length: 69 > > > User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; > > > Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR > > > 3.0.30729; Media Center PC 6.0; BRI/2; .NET4.0C; .NET4.0E) > > > Connection: keep-alive > > > Accept: application/x-ms-application, image/jpeg, application/xaml+xm= l, > > > image/gif, image/pjpeg, application/x-ms-xbap, */* > > > Content-Type: application/x-www-form-urlencoded > > > > > > > > > In the sampler results: > > > Set-Cookie: JSESSIONID=3D4BFA176CADFC51B302F1D54FE7326B01; > > > > > > Request2: > > > POST https://test-wmos1.test.liquidation.com:11001/j_security_check > > > > > > POST data: > > > > > > > > > MANH-CSRFToken=3DEAUIqvmDCrucFPBppnEcz0jgNEgnr7B3CBGAhTCnoGc=3D&j_usernam= e=3Dhmamidipelli&j_password=3D1D581EDDD4672CA0753D91B2FF38F586849A896618B8B= A023DC747D2CA773E18 > > > > > > Cookie Data: > > > $Version=3D0; scope_deploymentID=3D29-Jul-2012; $Path=3D/; $Domain=3D= . > > > test.liquidation.com > > > > > > Request Headers: > > > Accept-Language: en-IN > > > Content-Length: 159 > > > User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; > > > Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR > > > 3.0.30729; Media Center PC 6.0; BRI/2; .NET4.0C; .NET4.0E) > > > Connection: keep-alive > > > Accept: application/x-ms-application, image/jpeg, application/xaml+xm= l, > > > image/gif, image/pjpeg, application/x-ms-xbap, */* > > > Content-Type: application/x-www-form-urlencoded > > > > > > In the sampler results of the 1st request: > > > Set-Cookie: JSESSIONID=3D5AD6B1E865B8973A32E0994BC72B49BE; is present= . > > > > > > In the sampler result of the 2nd request: > > > Set-Cookie: JSESSIONID=3D4BFA176CADFC51B302F1D54FE7326B01; > > > > > > Regards, > > > Sharmila R > > > > > > > > > On Thu, Aug 23, 2012 at 4:58 PM, Deepak Shetty > > wrote: > > > > > > > are you accessing the site with the same dns name as you are gettin= g > in > > > the > > > > set cookie header? For e.g. the set-cookie might be saying domain= =3D > > > > www.yoursite.com and you might have given the IP address in the > > script. > > > > If not add a view results tree listener and > > > > see the request / response for a couple of requests and post the, > here > > > > > > > > And in addition are you sure the site is using cookies and not url > > > > rewriting? > > > > > > > > regards > > > > deepak > > > > > > > > On Thu, Aug 23, 2012 at 1:54 PM, sharmila Renganathan < > > > > sharmila1.r@gmail.com > > > > > wrote: > > > > > > > > > Hi, > > > > > > > > > > I have some 5 request in my testplan. > > > > > I have added a Http cookie manager at the beginning. > > > > > But when i observe in the 'View results tree' listener, the > jsession > > id > > > > is > > > > > different for all the request. > > > > > All my request are https.(Will that be the problem?) > > > > > Can some one get a solution for this. > > > > > I dono if i am doing some thing wrong. > > > > > It will be very great if some one can get me a solution. > > > > > > > > > > Regards, > > > > > Sharmila R > > > > > > > > > > > > > > > --f46d0444e9d1ac2a7a04c809c159--