jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Giving Http requests access to HttpSession in JMeter tests
Date Mon, 04 Apr 2005 14:54:29 GMT
I am already passing the correct request parameters back to the server. 
However, because of the nature 
of our application, we are saving more than just request parameters in the 
session, i.e. the session contains
a combination of user parameters and cached data from the previous request 
- in some cases we don't use any 
request parameters and rely on session data from previous requests to 
provide session data.
JMeter works fine if redirects are not called but loses the session after 
a redirect - sometimes a redirect is
necessary to perform an alternative function.


Peter Lin <>
04/04/2005 12:44 PM
Please respond to "JMeter Users List"

        To:     JMeter Users List <>
        Subject:        Re: Giving Http requests access to HttpSession in JMeter tests

On Apr 4, 2005 4:23 AM, <> 
> Thanks Sebb,
> I found out why I am having the problem. The first struts call I make to
> the application uses a redirect
> depending on the input (if only one input entry, build 1st page and then
> goto 2nd page, otherwise go to first page).
> With my example input, there was always a redirect to a second ".do" and
> the session was being lost. It works ok
> if I use input that doesn't cause a redirect and only calls a single
> ".do".
> I cannot use the cookie manager as I am not using cookies in the
> application - sesison data is maintained by
> the server. Is there any reason why JMeter loses the Http Session on a
> redirect and would there be any way
> to resolve this?

I'm not sure I understand this. If you're not using cookies to store
session state, that means it is using request parameters. If it is
using request parameters for session id, like the way Yahoo does it,
then you will need to get the correct req param and pass it back to
the server.

> Cheers
> Alan

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

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