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] {}
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?: {
): Mandarine.Security.Sessions.MandarineSession;override: boolean;
},§Methods
§
getSessionsContainer(): Array<Mandarine.Security.Sessions.MandarineSession> private
[src]§
setSessionContainer(sessions: Array<Mandarine.Security.Sessions.MandarineSession>) private
[src]§
get(sessionID: string, config?: {
[src]touch?: boolean;
}): Mandarine.Security.Sessions.MandarineSession | undefined§
getAll(): Array<Mandarine.Security.Sessions.MandarineSession>
[src]§
set(sessionID: string, session: Mandarine.Security.Sessions.MandarineSession, config?: {
[src]override: boolean;
}): Mandarine.Security.Sessions.MandarineSession§
touch(sessionID: string): Mandarine.Security.Sessions.MandarineSession | undefined
[src]