Session~ Session

new Session(optionsopt)

Constructor of session class

Parameters:
NameTypeAttributesDescription
optionsSessionOptions<optional>

Options

Members

store

Store getter

Return store object given in constructor

ttl

TTL getter

Returns current ttl in seconds or undefined value

ttl

TTL setter

Sets new ttl for session

Methods

middleware() → {Middleware}

Returns session middleware

Returns:
Type: 
Middleware