Skip to main content
Go to Latest
class SessionManager
import { SessionManager } from "https://deno.land/x/frugal@0.2.1/packages/frugal_oak/SessionManager.ts";

Constructors

new
SessionManager(persistance: Persistance, frugal: FrugalInstance)

Methods

delete(sessionId: string): Promise<void>

Delete the session.

get(sessionId: string): Promise<string>

Get the content of the session.

set(content: string): Promise<string>

Create a new session object with the given content.

The session uses a persistance layer, and returns the id of the created session