Table of Contents
CookieManager.SetCookie Method (String, Cookie)

Adds a new cookie to the cookie store.

Syntax
 public bool SetCookie(
   string url,
   Cookie cookie
);

Parameters

url
The Url the cookie is associated with. The value of the url is used to derive the cookie's Domain and Path if they are not specified in the Cookie object.
cookie
The cookie to be added.

Return Value

Returns true if successful. Otherwise false.

See Also