I tried a lot and tired now :(

I need to Load test a Website. I have configured all things, specified all necessary extractor & expressions and try to login, but it is giving me Response code: 302. I can see that GET LOGIN & POST LOGIN requests working perfect but page which is coming just after login is getting 302 in JMeter.

Then, I have recorded a script using proxy to verify that if I am passing all values and expressions correctly or not , and found that I am doing it right.

Now what could be reason of not able to login when try to perform without record. I have read all type of solutions from internet but still there is not success.


1 - Add Cookie manager

2 - Set CookieManager.save.cookies=true in jmeter.properties. By default it was false.

  • Have you added the Cookie Manager in your script and specified the cookies in it?
    – Dhiman
    Sep 3, 2015 at 14:47
  • Yes I have added cookie manager but what to specify in it? Sep 3, 2015 at 14:49
  • You should specify the value of the Cookies being used in your application, without cookies you will not be able to maintain session and no page after login will be shown. You can see the used cookies in Tree Listener or in Developers Toolbar or Fiddler etc. Also, are you able to login with the recorded script? Is your recorded script working fine?
    – Dhiman
    Sep 3, 2015 at 14:52
  • Yes with proxy recording it is working fine. also I am getting [no cookies] in listener? now what to do? Sep 3, 2015 at 14:53
  • Then I may need to take a look at the other setting which you have for your manual created scripts, in your HTTP Request. If your recorded script is working fine, then there might be some issue with your created script, some checkbox or some missing request. Also, I will suggest to use the recorded script as it is working fine and it will too provide you the same results which you need for the load test.
    – Dhiman
    Sep 3, 2015 at 15:09

1 Answer 1


The most common reasons are:

  • Yep , I was passing wrong Regular expression Extractor data. Thank you.. Issue solved :) Sep 9, 2015 at 14:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.