Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
class Session
import { Session } from "https://deno.land/x/the@0.0.0.4.9/src/Session.ts";

Constructors

new
Session(req: Request, cookie?: Record<string, string>)

Properties

optional
ActiveLoginSession: LoginSession
expirein: number
Login: Login
Session: string
time: Date

Methods

addSession(LoginSession: LoginSession)
expireSet(miniutes: number)
newSession(User: User, Active_Role: Active_role[])
SessionRoles(Role: Role[], Active_Role: Active_role[])
startnew(User: User, Active_Role?: Active_role[])