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
Function: The domain for which the cookie is valid.
Notes:
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
Function: The expiration date and time for the cookie as the number of seconds since the UNIX epoch.
Notes:
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
Function: The internal object reference.
Notes: (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
Function: Whether this cookie is http-only.
Notes:
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
Function: The security level of this cookie.
Notes:
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
Function: Whether this is a session cookie. The default is false.
Notes: (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
Function: Cookie name.
Notes: (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
Function: The path for which the cookie is valid.
Notes:
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
Function: SameSite status of the cookie which represents the enforcement mode of the cookie.
Notes:
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
Function: Cookie value.
Notes: (Read and Write property)

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


💬 Ask a question or report a problem
The biggest plugin in space...


Start Chat