CookieIdSessionBuilder

class CookieIdSessionBuilder<S : Any> : 
    CookieSessionBuilder<S>

Cookie session configuration builder

Constructors

<init>

CookieIdSessionBuilder(type: KClass<S>)

Cookie session configuration builder

Properties

sessionIdProvider

var sessionIdProvider: () -> String

Current session ID provider function

Inherited Properties

cookie

Cookie header configuration

serializer

var serializer: SessionSerializer

Session instance serializer

transformers

Registered session transformers

type

val type: KClass<S>
  • session instance type

Functions

identity

fun identity(f: () -> String): Unit

Register session ID generation function

Inherited Functions

transform

fun transform(transformer: SessionTransportTransformer): Unit

Register a session transformer. Useful for encryption, signing and so on