clear

abstract fun clear(name: String)(source)

Clears a session instance for name.

Report a problem

Throws

if no session provider is registered with for name


open suspend fun clear(name: String, sessionId: String)(source)

Clears a session with the specified sessionId for the session name.

Report a problem

Parameters

name

the session name

sessionId

the session ID to invalidate

Throws

if no session provider is registered with for name or the session provider doesn't use session IDs

if the session provider doesn't support clearing by ID