Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CookieSessionStore

A SessionStore that uses a Cookie to store the session data. All data is stored in plain sight and signed using a HMAC using the given secret.

The signature ensures that the cookie payload is not tampered when returning from the user agent (browser) back to the server.

Hierarchy

  • any
    • CookieSessionStore

Index

Properties

Methods

Properties

Static Readonly DEFAULT_SESSIONID_LENGTH

DEFAULT_SESSIONID_LENGTH: number

Methods

Static create

  • Creates a CookieSessionStore.

    Cookie data will be signed using the given secret. The secret as the name reflects, should never leave the server, otherwise user agents could tamper with the payload.

    Parameters

    • vertx: Vertx
    • secret: string

    Returns CookieSessionStore

Generated using TypeDoc