SessionTransportCookie

class SessionTransportCookie(val name: String, val configuration: CookieConfiguration, val 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
constructor(name: String, configuration: CookieConfiguration, transformers: List<SessionTransportTransformer>)

Properties

Link copied to clipboard

is a cookie configuration

Link copied to clipboard

is a cookie name

Link copied to clipboard

is a list of session transformers

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