Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
class Session
implements PageSession
import { Session } from "https://deno.land/x/frugal@0.9.0/src/server/session/Session.ts";

Constructors

new
Session(data?: SessionData, id?: string)

Properties

readonly
_data
readonly
_id
readonly
_shouldBePersisted

Methods

delete(key: string): void
get<T = unknown>(key: string): T | undefined
has(key: string): boolean
set<T = unknown>(key: string, value: T): void