Click or drag to resize

CookieAccessFilter.CanSaveCookie Method

Version 107.1.120
Called on the CEF IO thread after a resource response is received.

Namespace:  CefSharp.Handler
Assembly:  CefSharp (in CefSharp.dll) Version: 107.1.120.0 (107.1.120.0)
Syntax
protected virtual bool CanSaveCookie(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	IFrame frame,
	IRequest request,
	IResponse response,
	Cookie cookie
)

Parameters

chromiumWebBrowser
Type: CefSharp.IWebBrowser
The ChromiumWebBrowser control
browser
Type: CefSharp.IBrowser
the browser object - may be null if originating from ServiceWorker or CefURLRequest
frame
Type: CefSharp.IFrame
the frame object - may be null if originating from ServiceWorker or CefURLRequest
request
Type: CefSharp.IRequest
the request object - cannot be modified in this callback
response
Type: CefSharp.IResponse
the response object - cannot be modified in this callback
cookie
Type: CefSharp.Cookie
the cookie object

Return Value

Type: Boolean
Return true if the specified cookie returned with the response can be saved or false otherwise.
See Also