SessionProvider

class SessionProvider<S : Any>(val name: String, val type: KClass<S>, val transport: SessionTransport, val tracker: SessionTracker<S>, val sendOnlyIfModified: Boolean = false)(source)

Specifies a provider for a session with the specific name and type.

Report a problem

Parameters

transport

specifies the SessionTransport for this provider

tracker

specifies the SessionTracker for this provider

sendOnlyIfModified

when set to true, session data is not re-sent if unchanged from the incoming value. This avoids unnecessary session response headers. For cookie sessions, this also prevents cookie expiration refresh. Session classes should properly implement equals() for this to work correctly. Default: false.

Constructors

Link copied to clipboard
constructor(name: String, type: KClass<S>, transport: SessionTransport, tracker: SessionTracker<S>, sendOnlyIfModified: Boolean = false)

Properties

Link copied to clipboard

session name

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

session instance type

Functions

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