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

x/alosaur/src/security/session/mod.ts>Session

Alosaur - Deno web framework with many decorators
Go to Latest
class Session
implements SessionInterface
Re-export
import { Session } from "https://deno.land/x/alosaur@v0.33.1/src/security/session/mod.ts";

Object of session for job with store

Constructors

new
Session(
store: SessionStore,
sessionKey: string,
sessionId?: string,
)

Methods

get<T>(key: string): Promise<T>

returns of value from store in current store

set<T>(key: string, value: T): Promise<void>

Set value to store by key in current store