cookie
Content copied to clipboard
inline fun <S : Any> Sessions.Configuration.cookie(name: String, storage: SessionStorage)
Content copied to clipboard
Content copied to clipboard
Configure sessions to get it from cookie using session storage
inline fun <S : Any> Sessions.Configuration.cookie(name: String, storage: SessionStorage, block: CookieIdSessionBuilder<S>.() -> Unit)
Content copied to clipboard
Configures a session using a cookie with the specified name using it as a session id. The actual content of the session is stored at server side using the specified storage. The cookie configuration can be set inside block using the cookie property exposed by CookieIdSessionBuilder.
Content copied to clipboard
Configure sessions to serialize to/from HTTP cookie
inline fun <S : Any> Sessions.Configuration.cookie(name: String, block: CookieSessionBuilder<S>.() -> Unit)
Content copied to clipboard
Configures a session using a cookie with the specified name using it as for the actual session content optionally transformed by specified transforms in block. The cookie configuration can be set inside block using the cookie property exposed by CookieIdSessionBuilder.
Content copied to clipboard
Configure sessions to serialize to/from HTTP cookie configuring it by block