class SessionTrackerByValue<S : Any> : 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.
SessionTrackerByValue(type: KClass<S>, serializer: SessionSerializer<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. |
val serializer: SessionSerializer<S>
session serializer |
|
val type: KClass<S>
is a session instance type |
suspend fun clear(call: ApplicationCall): Unit
Clear session information |
|
suspend fun load(call: ApplicationCall, transport: String?): S?
Load session value from transport string for the specified call |
|
suspend fun store(call: ApplicationCall, value: S): String
Store session value and return respective transport string for the specified call. |
|
fun toString(): String |
|
fun validate(value: S): Unit
Validate session information |