CookieConfiguration

class CookieConfiguration

Cookie configuration being used to send sessions

Constructors

Link copied to clipboard
fun CookieConfiguration()

Properties

Link copied to clipboard
var domain: String? = null

Cookie domain

Link copied to clipboard
var duration: TemporalAmount?

Cookie time to live duration or null for session cookies. Session cookies are client-driven. For example, a web browser usually removes session cookies at browser or window close unless the session is restored.

Link copied to clipboard
var encoding: CookieEncoding

Cookie encoding

Link copied to clipboard
val extensions: MutableMap<String, String?>

Any additional extra cookie parameters

Link copied to clipboard
var httpOnly: Boolean = true

This cookie is only for transferring over HTTP(s) and shouldn't be accessible via JavaScript

Link copied to clipboard
var maxAgeInSeconds: Long

Cookie time to live duration or 0 for session cookies. Session cookies are client-driven. For example, a web browser usually removes session cookies at browser or window close unless the session is restored.

Link copied to clipboard
var path: String?

Cookie path

Link copied to clipboard
var secure: Boolean = false

Send cookies only over secure connection

Extensions

Link copied to clipboard
var CookieConfiguration.duration: TemporalAmount?
Link copied to clipboard
var CookieConfiguration.maxAge: Duration?

Cookie time to live duration or null for session cookies. Session cookies are client-driven. For example, a web browser usually removes session cookies at browser or window close unless the session is restored.