sync cookies after processing the request