Click or drag to resize

ICookieManagerSetStoragePath Method

Version 67.0.0
Sets the directory path that will be used for storing cookie data. If path is empty data will be stored in memory only. Otherwise, data will be stored at the specified path. To persist session cookies (cookies without an expiry date or validity interval) set persistSessionCookies to true. Session cookies are generally intended to be transient and most Web browsers do not persist them.

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: 67.0.0.0 (67.0.0.0)
Syntax
bool SetStoragePath(
	string path,
	bool persistSessionCookies,
	ICompletionCallback callback = null
)

Parameters

path
Type: SystemString
The file path to write cookies to.
persistSessionCookies
Type: SystemBoolean
A flag that determines whether session cookies will be persisted or not.
callback (Optional)
Type: CefSharpICompletionCallback
If non-NULL it will be executed asnychronously on the CEF IO thread after the manager's storage has been initialized

Return Value

Type: Boolean
Returns false if cookies cannot be accessed
See Also