new Session(optionsopt)
Constructor of session class
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options | SessionOptions | <optional> | Options |
- Source
Members
store
Store getter
Return store object given in constructor
- Source
ttl
TTL getter
Returns current ttl in seconds or undefined
value
- Source
ttl
TTL setter
Sets new ttl for session
- Source
Methods
middleware() → {Middleware}
Returns session middleware
- Source
Returns:
- Type:
- Middleware