Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fresh_session/src/session.ts>Session

Dead simple cookie-based session for Deno Fresh.
Go to Latest
class Session
import { Session } from "https://deno.land/x/fresh_session@0.2.2/src/session.ts";

Constructors

new
Session(data?, flash?)

Properties

readonly
data
readonly
doDelete
readonly
doKeyRotate
readonly
flashedData

Methods

flash(key: string, value?: any)
get(key: string)
has(key: string)
set(key: string, value: any)