Interface SessionStore<Data>

Type Parameters

Hierarchy

  • SessionStore

Indexable

[key: string]: any

Methods

Methods

  • Destroys the session with the given session ID.

    Parameters

    • sid: string
    • Optional callback: ((err?) => void)
        • (err?): void
        • Parameters

          • Optional err: any

          Returns void

    Returns void

  • Gets the session from the store given a session ID and passes it to callback.

    Parameters

    • sid: string
    • callback: ((err, session?) => void)

    Returns void

  • Upsert a session in the store given a session ID and SessionData

    Parameters

    • sid: string
    • session: SessionStorePayload<Data>
    • Optional callback: ((err?) => void)
        • (err?): void
        • Parameters

          • Optional err: any

          Returns void

    Returns void