Module

x/alosaur/security.ts>Session

Alosaur - Deno web framework with many ES Decorators
Very Popular
Latest
class Session
implements SessionInterface
import { Session } from "https://dotland.deno.dev/x/alosaur@v1.1.1/security.ts";

Object of session for job with store

Constructors

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

Properties

readonly
sessionIdHash: Uint8Array

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@v1.1.1/security.ts";