thats not right. The session id isnt part of the parameters a.jsp;jsessionid=xyz?param1=val1
regards deepak On Fri, Aug 7, 2009 at 1:32 PM, Tony Lotts <[email protected]> wrote: > Use the variable in a POST parameter. > Name: jsessionid > Value: ${jsessionid} > > On Fri, Aug 7, 2009 at 4:14 PM, Braulio <[email protected]> wrote: > > > > > Hi Guys, > > > > Thanks for the quick response. To answer Deepak's question: > > > > a. I used the Debug sampler and verified that I was getting the correct > > value. > > Note: I'm extracting the JSESSIONID from the body of the first page > request > > and storing it in a variable called "jsessionid". The JSESSIONID looks > > like > > this: > > > > <form id="signinform" class="form" method="post" > > action="/faces/SignIn.jsp;jsessionid=8E8F6100D7A1A6BF76967DF591800876" > > > > The next HTTP request is: /faces/SignIn.jsp;jsessionid=${jsessionid} > > > > Is this correct? > > > > > > Deepak Shetty wrote: > > > > > > Hi > > > a. use a debug sampler or just type ${variableNameYouveUsed} in the > next > > > sampler name to check what value you are getting , if this value is > > > correct > > > , how exactly are you passing it to the next request . > > > > > > b. An easier solution is to use the HTTPCookieManager under your thread > > > group so that the JSESSIONID is stored as a cookie (assuming your > server > > > is > > > configured for both urlrewriting and cookies which you can verify > whether > > > the first response has a Set-Cookie) > > > > > > regards > > > deepak > > > > > > On Fri, Aug 7, 2009 at 10:45 AM, Braulio <[email protected]> wrote: > > > > > >> > > >> Hi All, > > >> > > >> I'm running into an issue with JMeter in that I can't pass the > > JSESSIONID > > >> to > > >> other requests in the same Thread Group in my JMeter script. > > >> > > >> The script is very simple (all in one thread group): > > >> 1. Send HTTP request to go to Login page > > >> >> Regular Expression Extractor to get JSESSIONID and store in > variable > > >> 2. Send HTTP request to Login to site (POST) > > >> 3. Send HTTP request to Logout (POST) > > >> > > >> The problem is that even though I'm extracting the JSESSIONID (I think > > >> I'm > > >> doing it right) it doesn't seem to pass it to the second request, > > >> therefore > > >> the user is never logged in. Instead, it looks like a new JSESSIONID > is > > >> created and the site redirects me to the Login page (step 1). I can > > >> never > > >> login to the site! If the script was working correctly, I would expect > > >> that > > >> after step 2 the user to login to the site. > > >> > > >> Any ideas? Very much appreciated. > > >> > > >> Brau > > >> > > >> > > >> -- > > >> View this message in context: > > >> > > > http://www.nabble.com/How-do-you-pass-a-JSESSIONID-to-other-requests-after-Login--tp24869203p24869203.html > > >> Sent from the JMeter - User mailing list archive at Nabble.com. > > >> > > >> > > >> --------------------------------------------------------------------- > > >> To unsubscribe, e-mail: [email protected] > > >> For additional commands, e-mail: [email protected] > > >> > > >> > > > > > > > > > > -- > > View this message in context: > > > http://www.nabble.com/How-do-you-pass-a-JSESSIONID-to-other-requests-after-Login--tp24869203p24870515.html > > Sent from the JMeter - User mailing list archive at Nabble.com. > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > >

