Cookie

interface 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=value2 string returned by android.webkit.CookieManager.getCookie, so the common objects contain only name and value.

  • iOS maps matching NSHTTPCookie objects from WKHTTPCookieStore to 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

Link copied to clipboard
actual val Cookie.domain: String?

Cookie domain attribute, when the current platform exposes it.

expect val Cookie.domain: String?

Cookie domain attribute, when the current platform exposes it.

actual val Cookie.domain: String?

Cookie domain attribute, when the current platform exposes it.

actual val Cookie.domain: String?

Cookie domain attribute, when the current platform exposes it.

Link copied to clipboard
actual val Cookie.expires: String?

Cookie expiration time as an HTTP-date, when available.

expect val Cookie.expires: String?

Cookie expiration time as an HTTP-date, when available.

actual val Cookie.expires: String?

Cookie expiration time as an HTTP-date, when available.

actual val Cookie.expires: String?

Cookie expiration time as an HTTP-date, when available.

Link copied to clipboard
actual val Cookie.httpOnly: Boolean?

Whether this cookie is marked HttpOnly, when the current platform exposes it.

expect val Cookie.httpOnly: Boolean?

Whether this cookie is marked HttpOnly, when the current platform exposes it.

actual val Cookie.httpOnly: Boolean?

Whether this cookie is marked HttpOnly, when the current platform exposes it.

actual val Cookie.httpOnly: Boolean?

Whether this cookie is marked HttpOnly, when the current platform exposes it.

Link copied to clipboard
abstract val name: String

Cookie name as reported by the native WebView cookie store.

Link copied to clipboard
actual val Cookie.path: String?

Cookie path attribute, when the current platform exposes it.

expect val Cookie.path: String?

Cookie path attribute, when the current platform exposes it.

actual val Cookie.path: String?

Cookie path attribute, when the current platform exposes it.

actual val Cookie.path: String?

Cookie path attribute, when the current platform exposes it.

Link copied to clipboard
actual val Cookie.sameSite: String?

Cookie SameSite attribute, usually NONE, LAX, or STRICT, when available.

expect val Cookie.sameSite: String?

Cookie SameSite attribute, usually NONE, LAX, or STRICT, when available.

actual val Cookie.sameSite: String?

Cookie SameSite attribute, usually NONE, LAX, or STRICT, when available.

actual val Cookie.sameSite: String?

Cookie SameSite attribute, usually NONE, LAX, or STRICT, when available.

Link copied to clipboard
actual val Cookie.secure: Boolean?

Whether this cookie is marked Secure, when the current platform exposes it.

expect val Cookie.secure: Boolean?

Whether this cookie is marked Secure, when the current platform exposes it.

actual val Cookie.secure: Boolean?

Whether this cookie is marked Secure, when the current platform exposes it.

actual val Cookie.secure: Boolean?

Whether this cookie is marked Secure, when the current platform exposes it.

Link copied to clipboard
actual val Cookie.session: Boolean?

Whether this cookie is a session cookie, when the current platform exposes it.

expect val Cookie.session: Boolean?

Whether this cookie is a session cookie, when the current platform exposes it.

actual val Cookie.session: Boolean?

Whether this cookie is a session cookie, when the current platform exposes it.

actual val Cookie.session: Boolean?

Whether this cookie is a session cookie, when the current platform exposes it.

Link copied to clipboard
abstract val value: String

Cookie value as reported by the native WebView cookie store.