Let us say we have two requests in a thread group named login and authenticate.
So when login request hits the server it send some cookies back in response header of Login request
Now for authenticate request to succeed those cookies should automatically we added to the request header of the authenticate header.
For this thing to happen we need to a config element named Http Cookie manager to the same thread group in which the other two http requests are lying.