Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 46611 invoked from network); 9 Nov 2010 10:59:37 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Nov 2010 10:59:37 -0000 Received: (qmail 32673 invoked by uid 500); 9 Nov 2010 11:00:08 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 32234 invoked by uid 500); 9 Nov 2010 11:00:05 -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 32221 invoked by uid 99); 9 Nov 2010 11:00:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 11:00:04 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sebbaz@gmail.com designates 209.85.213.172 as permitted sender) Received: from [209.85.213.172] (HELO mail-yx0-f172.google.com) (209.85.213.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 10:59:59 +0000 Received: by yxp4 with SMTP id 4so4505565yxp.31 for ; Tue, 09 Nov 2010 02:59:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=9Sr7Twd/NTDHQh8f6boINSTx+mBgdxBJl5QaZJ6QE3U=; b=j1GII+gaQD5P+RUhRlEob5w3HH4eLoPaXCNRIhQDe0B68totrEdtTppFFw30KWJs6L UiExRZxr8LkbUw10sV53hUPvfH8CFPAgCjv3ozD1vIS8vFcKCqnUHUGPr+moCp5lt/Y+ 5gYELwCDt6aeds6Ihvf4G01Px/fewqUeK9vMY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=dKtYYr5OjBdzFJXtq1A8SnNlITLzfUQzy9LdGyzWk9SpzY1mmw/IIKhv9LGhAhnRk0 QM+aUhOuBDamnjTMTEq9tjvxPj/eaWoC7au+8lmgriVT3VyP+sGdroAqCMwptIDUTe52 lXq8tXxfig2/0+ZnQk9+RrKyg0uePNU5wlfII= MIME-Version: 1.0 Received: by 10.229.97.68 with SMTP id k4mr6260774qcn.261.1289300377805; Tue, 09 Nov 2010 02:59:37 -0800 (PST) Received: by 10.229.72.94 with HTTP; Tue, 9 Nov 2010 02:59:37 -0800 (PST) In-Reply-To: <1289294908574-3256501.post@n5.nabble.com> References: <1289235191343-3255345.post@n5.nabble.com> <1289294908574-3256501.post@n5.nabble.com> Date: Tue, 9 Nov 2010 10:59:37 +0000 Message-ID: Subject: Re: Issue with cookies / cookiemanager From: sebb To: JMeter Users List Content-Type: text/plain; charset=ISO-8859-1 On 9 November 2010 09:28, AlexAitch wrote: > > Some additional information: > > I have looked at using a Regex extractor, rather than the cookie manager. > Here is a sample of my response header: > > Response headers: > HTTP/1.1 200 OK > Cache-Control: private > Content-Length: 2477 > Content-Type: text/html; charset=utf-8 > Server: Microsoft-IIS/7.0 > X-AspNet-Version: 2.0.50727 > Set-Cookie: ASP.NET_SessionId=ic2401a5r2sbng45wat5b43z; path=/; HttpOnly > X-Powered-By: ASP.NET > Date: Tue, 09 Nov 2010 09:16:24 GMT > > > So I added a Regex extractor as a child of an initial load http request: > > Ref Name: Set-Cookie > reg Expression: + That's not valid. You would need: REL Set-Cookie: (.+) > Template: $0$ Template: $1$ > Match No.: 1 > > And with the subsequent requests, I added http header managers as childs > with the value: JUSERCOOKIE=${Set-Cookie} That looks OK. You can check the results in the Tree View Listener. > I am guessing this is slightly wrong? > > Thanks in advance However, it would be a lot better to establish why the Cookie Manager is not working for you. You can enable debug logging by selecting the CM and then the menu items Help/Debug. --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org