Cookie

external interface Cookie(source)

Properties

Link copied to clipboard
abstract var domain: String?

The domain of the cookie; this will be normalized with a preceding dot so that it's also valid for subdomains.

Link copied to clipboard
abstract var expirationDate: Double?

The expiration date of the cookie as the number of seconds since the UNIX epoch. Not provided for session cookies.

Link copied to clipboard
abstract var hostOnly: Boolean?

Whether the cookie is a host-only cookie; this will only be true if no domain was passed.

Link copied to clipboard
abstract var httpOnly: Boolean?

Whether the cookie is marked as HTTP only.

Link copied to clipboard
abstract var name: String

The name of the cookie.

Link copied to clipboard
abstract var path: String?

The path of the cookie.

Link copied to clipboard
abstract var sameSite: CookieSameSite

The Same Site policy applied to this cookie. Can be unspecified, no_restriction, lax or strict.

Link copied to clipboard
abstract var secure: Boolean?

Whether the cookie is marked as secure.

Link copied to clipboard
abstract var session: Boolean?

Whether the cookie is a session cookie or a persistent cookie with an expiration date.

Link copied to clipboard
abstract var value: String

The value of the cookie.