ktor-server-core / io.ktor.sessions / CurrentSession / set

set

abstract fun set(name: String, value: Any?): Unit

Set new session instance with name

Exceptions

IllegalStateException - if no session provider registered with for name