- url
- the URL for which the cookie is to be set
- value
- the cookie as a string, using the format of the 'Set-Cookie' HTTP response header
Sets a cookie for the given URL. Any existing cookie with the same host, path and name will be replaced with the new cookie. The cookie being set will be ignored if it is expired.