'Does Locust Keep Cookies between Containers?

I'm running into an issue where the same requests of different headers and params is returning the same response. I think it might be my code structure:

def login(self):
    with self.client.get(...catch_response=True) as response:
def task(self):
    with self.client.get(...catch_response=True) as response:

Are cookies lost in between method call since the containers close after each method? If so, how would I go about keeping catch_response and data in between calls?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source