Class SessionAbstract

An abstract class representing a session driver. Some implementation of this is injected into the request.

Hierarchy

Constructors

Properties

request: Request

Methods

  • Get a value from the session by key.

    Parameters

    • key: string
    • Optional fallback: unknown

    Returns any

  • Load the session data from the respective backend.

    Returns void | Promise<void>

  • Save the session data into the respective backend.

    Returns void | Promise<void>

  • Set a value in the session by key.

    Parameters

    • key: string
    • value: unknown

    Returns void