Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

MandarineSessionHandler

import { MandarineSessionHandler } from "https://raw.githubusercontent.com/mandarineorg/mandarinets/master/mod.ts";

MandarineSessionHandler serves as the default implementation of the SessionStore. If not implementation is overriden, you may still use Sessions as this class is already implemented by Mandarine's core

class MandarineSessionHandler implements [[[Mandarine.Security].Sessions].SessionStore] {
private getSessionsContainer(): Array<Mandarine.Security.Sessions.MandarineSession>;
private setSessionContainer(sessions: Array<Mandarine.Security.Sessions.MandarineSession>);
public clearExpiredSessions(): void;
public destroy(sessionID: string): void;
public exists(sessionID: string): boolean;
public get(sessionID: string, config?: {
touch?: boolean;
}
): Mandarine.Security.Sessions.MandarineSession | undefined;
public getAutoclearExpiredSessions(): boolean;
public getDefaultExpiration(): number;
public getExpirationInterval(): number;
public launch();
public set(
sessionID: string,
config?: {
override: boolean;
}
,
): Mandarine.Security.Sessions.MandarineSession;
public touch(sessionID: string): Mandarine.Security.Sessions.MandarineSession | undefined;
}

§Implements

§
[[[Mandarine.Security].Sessions].SessionStore]
[src]

§Methods

§
getSessionsContainer(): Array<Mandarine.Security.Sessions.MandarineSession> private
[src]
§
setSessionContainer(sessions: Array<Mandarine.Security.Sessions.MandarineSession>) private
[src]
§
clearExpiredSessions(): void
[src]
§
destroy(sessionID: string): void
[src]
§
exists(sessionID: string): boolean
[src]
§
get(sessionID: string, config?: {
touch?: boolean;
}
): Mandarine.Security.Sessions.MandarineSession | undefined
[src]
§
getAutoclearExpiredSessions(): boolean
[src]
§
getDefaultExpiration(): number
[src]
§
getExpirationInterval(): number
[src]
§
launch()
[src]
§
set(sessionID: string, session: Mandarine.Security.Sessions.MandarineSession, config?: {
override: boolean;
}
): Mandarine.Security.Sessions.MandarineSession
[src]
§
touch(sessionID: string): Mandarine.Security.Sessions.MandarineSession | undefined
[src]