Class SessionStore
- Defined in: SessionStore.js
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
SessionStore(config)
A basic in-memory session store
|
Method Summary
| Method Attributes | Method Name and Description |
|---|---|
|
cleanup(timeout)
Go through the sessions and clean up any that have timed out.
|
|
|
destroy(session)
Destroys the given session.
|
|
|
load(id)
Returns a promise for the session having the given ID.
|
|
|
save(session)
Saves the given session and returns a completion promise.
|
Class Detail
SessionStore(config)
A basic in-memory session store
- Parameters:
- config
Method Detail
-
cleanup(timeout)Go through the sessions and clean up any that have timed out.
- Parameters:
- timeout
- Returns:
- promise completion promise
-
destroy(session)Destroys the given session.
- Parameters:
- session
- Returns:
- promise completion promise
-
load(id)Returns a promise for the session having the given ID.
- Parameters:
- id
- the session id
- Returns:
- promise
-
save(session)Saves the given session and returns a completion promise.
- Parameters:
- session
- Returns:
- promise