Session

The session class used for creating a new session

new Session(SessionOptions)

Create a new instance of the session to use.

Parameter

Type

Required

Description

SessionOptions

object

false

The options for configuring the session

Example:

// Dependencies
const { Session } = require('cubed-session');
const session = new Session(); 

SessionOptions

An object that contains all settings for the session

Option

Type

Default

Description

listenConsole

boolean

false

Enables the console event

Last updated

Was this helpful?