Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MemorySession

Implementation of the session driver that stores session data in memory. This is the default, for compatibility, but it is recommended that you replace this driver with one with a persistent backend.

Hierarchy

Index

Constructors

constructor

Properties

Protected Optional data

The associated data for this session.

Protected Readonly request

request: Request

Protected Optional sessionID

sessionID: string

The ID of this session.

Static Private sessionsByID

sessionsByID: {} = {}

Mapping of session key to session data object.

Type declaration

Methods

forget

  • forget(key: string): void

get

  • get(key: string, fallback?: unknown): any

getData

getKey

  • getKey(): string

load

  • load(): void

persist

  • persist(): void

set

  • set(key: string, value: unknown): void

setData

setKey

  • setKey(key: string): void

Static Private getSession

Static Private setSession

Extollo Logo

extollo (v. latin) - to lift up, to elevate

Extollo is a free & libre application framework in TypeScript.