setSession
context(context: RoutingContext)
fun <S : Any, P : Any> SessionAuthenticationScheme<S, P>.setSession(value: S)(source)
fun <S : Any, P : Any> SessionAuthenticationScheme<S, P>.setSession(value: S)(source)
Sets a session value for this scheme.
To clear a session from a non-authenticated route, use call.sessions.clear(name) on the Sessions plugin.
Parameters
value
session value to set.
Throws
if no session provider is registered for this scheme.