CookieAttribute

external interface CookieAttribute

Cookie attributes that can be passed in Cookie.remove, Cookie.set or Cookie.get methods

See also

Properties

Link copied to clipboard
abstract var domain: String?

A String indicating a valid domain where the cookie should be visible. The cookie will also be visible to all subdomains.

Link copied to clipboard
abstract var expires: Int?

Define when the cookie will be removed. Value must be an Int which will be interpreted as days from time of creation.

Link copied to clipboard
abstract var path: String?

A String indicating the path where the cookie is visible.

Link copied to clipboard
abstract var secure: Boolean?

Either true or false, indicating if the cookie transmission requires a secure protocol (https).