Search code examples
testingjmeterperformance-testing

How to clear JSESSIONID of each Thread (user) in JMeter on demand


I want to clear the JMeter JsessionID variable at any time (on my demand).

I know there is a check box option in JMeter CookieManager named "Clear Cookie on each Iteration".

But it clears the session on each iteration while I want to clear it at any time in the iteration.

How can I do that in JMeter?


Solution

  • Currently you cannot simply , particularly if you want to clear one particular cookie.

    You should raise an enhancement request at JMeter Bugzilla giving precision on what you want to do.

    I think a custom function would be a nice feature, see: