Module

x/alosaur/security.ts>Session

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

import Session
import { Session } from "https://dotland.deno.dev/x/alosaur@v0.37.0/security.ts";