CookieConfiguration

class CookieConfiguration

Cookie configuration being used to send sessions

Constructors

<init>

CookieConfiguration()

Cookie configuration being used to send sessions

Properties

domain

var domain: String?

Cookie domain

duration

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.

encoding

var encoding: CookieEncoding

Cookie encoding

extensions

val extensions: MutableMap<String, String?>

Any additional extra cookie parameters

httpOnly

var httpOnly: Boolean

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

maxAgeInSeconds

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.

path

var path: String?

Cookie path

secure

var secure: Boolean

Send cookies only over secure connection

Extension Properties

duration

var CookieConfiguration.duration: TemporalAmount?

maxAge

var CookieConfiguration.maxAge: <ERROR CLASS>?

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.