CookieIdSessionBuilder

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

A configuration that allows you to configure additional cookie settings for Sessions, for example:

  • add cookie attributes;

  • sign and encrypt session data.

Constructors

Link copied to clipboard
fun <S : Any> CookieIdSessionBuilder(type: KClass<S>)

Functions

Link copied to clipboard
fun identity(f: () -> String)

Registers a function used to generate a session ID.

Link copied to clipboard
fun transform(transformer: SessionTransportTransformer)

Registers a transformer used to sign and encrypt session data.

Properties

Link copied to clipboard
val cookie: CookieConfiguration

Gets a configuration used to specify additional cookie attributes for Sessions.

Link copied to clipboard
var serializer: SessionSerializer<S>

Specifies a serializer used to serialize session data.

Link copied to clipboard
var sessionIdProvider: () -> String

A function used to provide a current session ID.

Link copied to clipboard
val transformers: List<SessionTransportTransformer>

Gets transformers used to sign and encrypt session data.

Link copied to clipboard
val type: KClass<S>
Link copied to clipboard
val typeInfo: KType