SessionTransportCookie

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

SessionTransport that adds a Set-Cookie header and reads 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 session information from a specific call.

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

Gets 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 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