def add_cookies_to_web_driver(driver, cookies):
    """
    Sets cookies in an existing WebDriver session.
    """
    for cookie in cookies:
        driver.add_cookie(convert_cookie_to_dict(cookie))
    return driver