I\'ve encountered a problem when trying to update a Jmeter variable with a beanshell script. I\'ve followed this manual and i have seen this topic and both say the same:
Put the cookie manager in your script and you will be fine.
Now you have a global variable counter = 1, in one request you use a local variable counter ant set it to 2. When another request tries to pick up the value of counter it gets the global value 1, because the local one is trashed.