new Session()
A shell session.
- Source:
Methods
-
get(key) → {Object}
-
Get some data from the session
Parameters:
Name Type Description key
string the key of the data - Source:
Returns:
the data- Type
- Object
-
put(key, obj) → {Session}
-
Put some data in a session
Parameters:
Name Type Description key
string the key for the data obj
Object the data - Source:
Returns:
a reference to this, so the API can be used fluently- Type
- Session
-
remove(key) → {Object}
-
Remove some data from the session
Parameters:
Name Type Description key
string the key of the data - Source:
Returns:
the data that was there or null if none there- Type
- Object