Skip to main content
Module

x/alosaur/security.ts>Session

Alosaur - Deno web framework with many decorators
Very Popular
Go to Latest
class Session
implements SessionInterface
Re-export
import { Session } from "https://deno.land/x/alosaur@v0.35.2/security.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