Click or drag to resize
ICookieManagerSetCookie Method
Version 57.0.0
Sets a cookie given a valid URL and explicit user-provided cookie attributes. This function expects each attribute to be well-formed. It will check for disallowed characters (e.g. the ';' character is disallowed within the cookie value attribute) and will return false without setting the cookie if such characters are found.

Namespace: CefSharp
Assembly: CefSharp (in CefSharp.dll) Version: 57.0.0.0 (57.0.0.0)
Syntax
bool SetCookie(
	string url,
	Cookie cookie,
	ISetCookieCallback callback = null
)

Parameters

url
Type: SystemString
The cookie URL
cookie
Type: CefSharpCookie
The cookie
callback (Optional)
Type: CefSharpISetCookieCallback
If non-NULL it will be executed asnychronously on the CEF IO thread after the cookie has been set.

Return Value

Type: Boolean

[Missing <returns> documentation for "M:CefSharp.ICookieManager.SetCookie(System.String,CefSharp.Cookie,CefSharp.ISetCookieCallback)"]

See Also