Inheritance diagram for Session:The session.
Protected Properties | |
| Site | $site |
Public Methods | |
| __construct (Site $site) | |
| Starts the session and initializes the CSRF token. More... | |
| string | getToken () |
| mixed | getUser () |
Returns the stored user, or null. More... | |
| void | logout () |
| Wipes the session. More... | |
| bool | offsetExists ($offset) |
| mixed | offsetGet ($offset) |
| void | offsetSet ($offset, $value) |
| void | offsetUnset ($offset) |
| $this | setUser ($user) |
| Sets the user (logs them in). More... | |
| $this | verify ($token) |
| Checks the given CSRF token against what we expect. More... | |
| string getToken | ( | ) |
| mixed getUser | ( | ) |
Returns the stored user, or null.
| void logout | ( | ) |
Wipes the session.
| bool offsetExists | ( | $offset | ) |
| mixed | $offset |
| mixed offsetGet | ( | $offset | ) |
| mixed | $offset |
null | void offsetSet | ( | $offset, | |
| $value | |||
| ) |
| mixed | $offset | |
| mixed | $value |
| void offsetUnset | ( | $offset | ) |
| mixed | $offset |
| $this setUser | ( | $user | ) |