SessionStorage

interface SessionStorage

A storage that provides the ability to write, read, and invalidate session data.

See also

Inheritors

Functions

Link copied to clipboard
abstract suspend fun invalidate(id: String)

Invalidates a session with the id identifier. This method prevents a session id from being accessible after this call.

Link copied to clipboard
abstract suspend fun read(id: String): String

Reads a session with the id identifier.

Link copied to clipboard
abstract suspend fun write(id: String, value: String)

Writes a session value for id.