Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 3625 invoked from network); 2 Aug 2006 18:03:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Aug 2006 18:03:22 -0000 Received: (qmail 63607 invoked by uid 500); 2 Aug 2006 18:03:20 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 63584 invoked by uid 500); 2 Aug 2006 18:03:20 -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 63573 invoked by uid 99); 2 Aug 2006 18:03:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Aug 2006 11:03:20 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of sebbaz@gmail.com designates 64.233.166.180 as permitted sender) Received: from [64.233.166.180] (HELO py-out-1112.google.com) (64.233.166.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Aug 2006 11:03:18 -0700 Received: by py-out-1112.google.com with SMTP id t32so1818851pyc for ; Wed, 02 Aug 2006 11:02:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=urH9Y7/S08/mwtfvf1yn5zDzjwIDWxrmYSPbfh1wQFXHzhNWE3hqmUdyS3iP0E25RKShVVlWgjDIwQy3HBYN2pCCv0fnhu0wsPspJ/VhkuMRdO+8r+CZc1n5+t4nl9WOwxArSryxTEwnjPLzUpBHW00zjkULyT4dNFQ7Js3C2tM= Received: by 10.35.29.6 with SMTP id g6mr1835062pyj; Wed, 02 Aug 2006 11:02:58 -0700 (PDT) Received: by 10.35.28.6 with HTTP; Wed, 2 Aug 2006 11:02:57 -0700 (PDT) Message-ID: <25aac9fc0608021102n7659b13btac1181bf150cdaa3@mail.gmail.com> Date: Wed, 2 Aug 2006 19:02:57 +0100 From: sebb To: "JMeter Users List" Subject: Re: Another JSP Login problem In-Reply-To: <5605313.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5605313.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 02/08/06, jax wrote: > > Hi Everyone, > > I have trawled through this site (and others via google) and I can't the > answer I'm looking for so am posting this question here. > > 1) I have a jsp page called setup.jsp. This checks for a cookie called > 'username'. If it can't find it, then it redirects to login.jsp. > > 2) login.jsp takes a username and password and submits to setup.jsp. Before > the 'submit' occurs, a bit of javascript adds 'username' to the cookie with > the value of what is entered by the user. Once submitted, setup.jsp will > redirect to home.jsp (which requires that there is a username cookie > present). > > I have setup a HTTP Request Defaults and a HTTP Cookie Manager. > My HTTP Request does a POST and has Redirect Automatically checked on and > Follow Redirects checked on also. > > After Running the Thread Group, The Sampler Result contains: > Thread Name: Thread Group 1-1 > Sample Start: Tue Aug 01 16:42:32 PDT 2006 > Load time: 16 > HTTP response code: 200 > HTTP response message: OK > > HTTP response headers: > HTTP/1.1 200 OK > Date: Tue, 01 Aug 2006 23:42:32 GMT > Server: WebLogic Server 8.1 SP2 Fri Dec 5 15:01:51 PST 2003 316284 with > CR209251 > Content-Length: 4009 > Content-Type: text/html;charset=ISO-8859-1 > Set-Cookie: > JSESSIONID=EPmoLXWNcAHeeSaVzRf4zOwTOtQ3EOq8o81Xjwg5m7wTZqS6DD5L!-1729165304; > path=/ > > And the Request contains > POST http://localhost:7001/RAVEmanage/rm_login.jsp > > POST data: > j_username=jleslie&j_password=summer1 > > [no cookies] > > Request Headers: > > AND I am redirected to the login.jsp page. > > Can someone please tell me what I am doing wrong? Cookies are only sent back if: + There is a Cookie Manager in scope + The cookie matches the host and path Are you sure that the host that set the cookie is the same as the one that requires it? Are you using JMeter 2.2? [There were some substantial fixes to cookie handling in 2.2] > Thanks in advance, > > Jax. > > -- > View this message in context: http://www.nabble.com/Another-JSP-Login-problem-tf2036939.html#a5605313 > Sent from the JMeter - User forum at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org