Cookie

class Cookie(val name: String, val value: String, val domain: String, val path: String = "/", val expiresAtMillis: Long? = null, val secure: Boolean = false, val httpOnly: Boolean = false)

A cookie, as the platform stores it. Cookie storage is process-global.

Constructors

Link copied to clipboard
constructor(name: String, value: String, domain: String, path: String = "/", expiresAtMillis: Long? = null, secure: Boolean = false, httpOnly: Boolean = false)

Properties

Link copied to clipboard

The domain this cookie applies to.

Link copied to clipboard
val expiresAtMillis: Long? = null

Epoch milliseconds, or null for a session cookie.

Link copied to clipboard
val httpOnly: Boolean = false

Not reachable from page script when true.

Link copied to clipboard

The cookie's name.

Link copied to clipboard

The path scope this cookie applies to.

Link copied to clipboard
val secure: Boolean = false

Sent only over HTTPS when true.

Link copied to clipboard

The cookie's value.