In the Tests tab of your request, type this code
let cookie = postman.getResponseHeader("Set-Cookie");
postman.setEnvironmentVariable("cookie", cookie);
This will set an environment vairable. In all the requests that need cookie, add to the Request Header
Key: Cookie