Platforms to show: All Mac Windows Linux Cross-Platform

Back to WebView2CookieMBS class.

WebView2CookieMBS.Domain as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebView2 MBS WinFrameworks Plugin 23.1 ❌ No ✅ Yes ❌ No ❌ No Desktop only
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.
(Read only property)

WebView2CookieMBS.Expires as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebView2 MBS WinFrameworks Plugin 23.1 ❌ No ✅ Yes ❌ No ❌ No Desktop only
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.

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.
(Read and Write property)

WebView2CookieMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebView2 MBS WinFrameworks Plugin 23.1 ❌ No ✅ Yes ❌ No ❌ No Desktop only
The internal object reference.

(Read and Write property)

WebView2CookieMBS.IsHttpOnly as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebView2 MBS WinFrameworks Plugin 23.1 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Whether this cookie is http-only.

True if a page script or other active content cannot access this cookie. The default is false.
(Read and Write property)

WebView2CookieMBS.IsSecure as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebView2 MBS WinFrameworks Plugin 23.1 ❌ No ✅ Yes ❌ No ❌ No Desktop only
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 kCookieSameSiteKindNone but is not marked Secure will be rejected.
(Read and Write property)

WebView2CookieMBS.IsSession as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebView2 MBS WinFrameworks Plugin 23.1 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Whether this is a session cookie. The default is false.

(Read only property)

Some examples using this property:

WebView2CookieMBS.Name as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebView2 MBS WinFrameworks Plugin 23.1 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Cookie name.

(Read only property)

WebView2CookieMBS.Path as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebView2 MBS WinFrameworks Plugin 23.1 ❌ No ✅ Yes ❌ No ❌ No Desktop only
The path for which the cookie is valid.

The default is "/", which means this cookie will be sent to all pages on the Domain.
(Read only property)

WebView2CookieMBS.SameSite as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebView2 MBS WinFrameworks Plugin 23.1 ❌ No ✅ Yes ❌ No ❌ No Desktop only
SameSite status of the cookie which represents the enforcement mode of the cookie.

The default is kCookieSameSiteKindLax.
(Read and Write property)

WebView2CookieMBS.Value as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property WebView2 MBS WinFrameworks Plugin 23.1 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Cookie value.

(Read and Write property)

The items on this page are in the following plugins: MBS WinFrameworks Plugin.


The biggest plugin in space...