Android.Webkit.CookieManager.SetCookie Method
Sets a cookie for the given URL.

Syntax

[Android.Runtime.Register("setCookie", "(Ljava/lang/String;Ljava/lang/String;)V", "GetSetCookie_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual void SetCookie (string url, string value)

Parameters

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

Remarks

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.

[Android Documentation]

Requirements

Namespace: Android.Webkit
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1