Cookie
Common view of a cookie visible to a WebView request.
The common API intentionally exposes only name and value. Browser engines keep additional cookie attributes such as domain, path, expiry, HttpOnly, Secure, session state, and SameSite, but support for reading or mutating those attributes differs by platform and native backend.
Platform notes:
Android parses the
name=value; name2=value2string returned byandroid.webkit.CookieManager.getCookie, so the common objects contain only name and value.iOS maps matching
NSHTTPCookieobjects fromWKHTTPCookieStoreto name and value.Desktop/JVM receives structured cookies from the native backend. Those objects carry extra properties internally, but the public Cookie contract remains name and value.
Inheritors
Properties
Whether this cookie is marked HttpOnly, when the current platform exposes it.
Whether this cookie is marked HttpOnly, when the current platform exposes it.
Whether this cookie is marked HttpOnly, when the current platform exposes it.
Cookie SameSite attribute, usually NONE, LAX, or STRICT, when available.
Cookie SameSite attribute, usually NONE, LAX, or STRICT, when available.
Cookie SameSite attribute, usually NONE, LAX, or STRICT, when available.
Whether this cookie is marked Secure, when the current platform exposes it.
Whether this cookie is marked Secure, when the current platform exposes it.
Whether this cookie is marked Secure, when the current platform exposes it.
Whether this cookie is a session cookie, when the current platform exposes it.
Whether this cookie is a session cookie, when the current platform exposes it.
Whether this cookie is a session cookie, when the current platform exposes it.