jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Antwort: Problem with cookie-manager and redirections
Date Thu, 16 Oct 2003 16:42:45 GMT
I think, there is a missunderstanding at your end about the funktions of 
the cookie manager.

As far as I know you won't actually see the cookies in it as long as you 
don't store them yourself there, but it accepts them and controles them in 
each thread-session. (You see them in assertion-report listeners....)
Or the other way round: if you remove the cookie manager, your session 
doesn't accept cookies anymore.

hope that helps...


Benoit des Ligneris <>
16.10.2003 16:57
Please respond to "JMeter Users List"

        Subject:        Problem with cookie-manager and redirections


I use jmeter-1.9.1

I have a test plan that is "almost" functionnal. 

The cookie manager does not seems to work as expected.

Several cookies are to be set based on a "cookie chain" that is created
with several redirections ). So basically, the redirections occurs and a
cookie is set. This happens three time for three different domains and
then the user is redirected to the main web site.

In order to trigger this behavior inside jmeter, I used a simple HTTP
sampler and fill the login form (POST). I activate the "Follow
Redirects" option.

I have a "cookie manager" for this group of thread. However, there is no
cookie inside the cookie-manager even if I can see (in the HTTP headers)
that the cookies are well received by jmeter.

Is this a normal behavior (i.e. : jmeter accept the redirect but no the
corresponding cookie)

I think that I have another solution (i.e. : do not accept redirect and
extract the cookie value with some regexps and fill the cookier manager
with the corresponding variable) but I would like to know if some jmeter
users/developpers have other (more elegant/performant maybe !) solutions
to offer.

Thank you for your help !

PS : Here is an example of a redirect/cookie. The redirect is followed but
     the cookie is ignores by the jmeter cookie manager.

HTTP/1.1 302 Found
Date: Thu, 16 Oct 2003 14:48:40 GMT
Server: Apache/1.3.28 (Unix) JRun/4.0
Set-Cookie: cookie=GeoCookie;DOMAIN=.titi.tata;PATH=/
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1

Benoit des Ligneris Ph. D.    <|>
Centre de Calcul Scientifique <|>
OSCAR Developpe(u)r           <|>
ÉduLinux                      <|>
Révolution Linux              <|>

To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message