SessionTrackerByValue

class SessionTrackerByValue<S : Any>(val type: KClass<S>, val serializer: SessionSerializer<S>) : SessionTracker<S>

SessionTracker that stores the contents of the session as part of HTTP Cookies/Headers. It uses a specific serializer to serialize and deserialize objects of type type.

Constructors

Link copied to clipboard
constructor(type: KClass<S>, serializer: SessionSerializer<S>)

Properties

Link copied to clipboard

session serializer

Link copied to clipboard
val type: KClass<S>

is a session instance type

Functions

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

Clear session information

Link copied to clipboard
open suspend override fun load(call: ApplicationCall, transport: String?): S?

Load session value from transport string for the specified call

Link copied to clipboard
open suspend override fun store(call: ApplicationCall, value: S): String

Store session value and return respective transport string for the specified call.

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

Validate session information