ICoreWebView2Cookie

Undocumented in source.

Members

Functions

get_Domain
HRESULT get_Domain(LPWSTR* domain)

The domain for which the cookie is valid. The default is the host that this cookie has been received from. Note that, for instance, ".bing.com", "bing.com", and "www.bing.com" are considered different domains.

get_Expires
HRESULT get_Expires(double* expires)

The expiration date and time for the cookie as the number of seconds since the UNIX epoch. The default is -1.0, which means cookies are session cookies by default.

get_IsHttpOnly
HRESULT get_IsHttpOnly(BOOL* isHttpOnly)

Whether this cookie is http-only. True if a page script or other active content cannot access this cookie. The default is false.

get_IsSecure
HRESULT get_IsSecure(BOOL* isSecure)

The security level of this cookie. True if the client is only to return the cookie in subsequent requests if those requests use HTTPS. The default is false. Note that cookie that requests COREWEBVIEW2_COOKIE_SAME_SITE_KIND_NONE but is not marked Secure will be rejected.

get_IsSession
HRESULT get_IsSession(BOOL* isSession)

Whether this is a session cookie. The default is false.

get_Name
HRESULT get_Name(LPWSTR* name)

Cookie name.

get_Path
HRESULT get_Path(LPWSTR* path)

The path for which the cookie is valid. The default is "/", which means this cookie will be sent to all pages on the Domain.

get_SameSite
HRESULT get_SameSite(COREWEBVIEW2_COOKIE_SAME_SITE_KIND* sameSite)

SameSite status of the cookie which represents the enforcement mode of the cookie. The default is COREWEBVIEW2_COOKIE_SAME_SITE_KIND_LAX.

get_Value
HRESULT get_Value(LPWSTR* value)

Cookie value.

put_Expires
HRESULT put_Expires(double expires)

Set the Expires property. Cookies are session cookies and will not be persistent if Expires is set to -1.0. NaN, infinity, and any negative value set other than -1.0 is disallowed.

put_IsHttpOnly
HRESULT put_IsHttpOnly(BOOL isHttpOnly)

Set the IsHttpOnly property.

put_IsSecure
HRESULT put_IsSecure(BOOL isSecure)

Set the IsSecure property.

put_SameSite
HRESULT put_SameSite(COREWEBVIEW2_COOKIE_SAME_SITE_KIND sameSite)

Set the SameSite property.

put_Value
HRESULT put_Value(LPCWSTR value)

Set the cookie value property.

Meta