SessionTransportCookie

class SessionTransportCookie(name: String, configuration: CookieConfiguration, transformers: List<SessionTransportTransformer>) : SessionTransport

A session transport that adds the Set-Cookie header and reads the Cookie header for the specified cookie name, and a specific cookie configuration after applying/un-applying the specified transforms defined by transformers.

Constructors

Link copied to clipboard
fun SessionTransportCookie(name: String, configuration: CookieConfiguration, transformers: List<SessionTransportTransformer>)

Functions

Link copied to clipboard
open override fun clear(call: ApplicationCall)

Clears a session information from a specific call.

Link copied to clipboard
open override fun receive(call: ApplicationCall): String?

Gets a session information from a call and returns a String if success or null if failed.

Link copied to clipboard
open override fun send(call: ApplicationCall, value: String)

Sets a session information represented by value to a call.

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val configuration: CookieConfiguration

is a cookie configuration

Link copied to clipboard
val name: String

is a cookie name

Link copied to clipboard
val transformers: List<SessionTransportTransformer>

is a list of session transformers