Add set_cookie_params function.