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

x/fresh_session/src/session.ts>createSession

Dead simple cookie-based session for Deno Fresh.
Latest
function createSession
import { createSession } from "https://deno.land/x/fresh_session@beta-0.3.1/src/session.ts";

Type Parameters

T extends string
F extends string

Parameters

unnamed 0: { session: SessionData<T>; flash: FlashData<F>; }

Returns

{ session: Session<T, F>; getDuplicateDataFunction: { (): SessionDuplicationData<T, F>; }; }