Method |
Description |
|
__construct ( Pantheon\Terminus\DataStore\DataStoreInterface $data_store ) |
Instantiates object, sets session data, instantiates a SavedTokens instance |
|
destroy ( ) |
Removes the session from the cache |
|
get ( string $key ) : mixed |
Returns given data property or default if DNE. |
|
getTokens ( ) : SavedTokens |
|
|
getUser ( ) : User |
Returns a user with the current session user id |
|
isActive ( ) : boolean |
Responds with the status of this session (i.e. whether the client is logged in) |
|
setData ( array $data ) |
Saves session data to cache |
|
setDataStore ( Pantheon\Terminus\DataStore\DataStoreInterface $data_store ) |
|
|