|
Open Monograph Press
3.3.0
|
Data Fields | |
| $user | |
Data Fields inherited from DataObject | |
| $_data = array() | |
| $_extractionAdaptersLoaded = false | |
| $_hasLoadableAdapters = false | |
| $_injectionAdaptersLoaded = false | |
| $_metadataExtractionAdapters = array() | |
| $_metadataInjectionAdapters = array() | |
Maintains user state information from one request to the next.
Definition at line 22 of file Session.inc.php.
| Session::getCSRFToken | ( | ) |
Get a usable CSRF token (generating if necessary).
Definition at line 213 of file Session.inc.php.
References getSessionVar(), Config\getVar(), and setSessionVar().
| Session::getDomain | ( | ) |
Get the domain with which the session is registered
Definition at line 189 of file Session.inc.php.
References DataObject\getData().
| Session::getIpAddress | ( | ) |
Get IP address.
Definition at line 93 of file Session.inc.php.
References DataObject\getData().
| Session::getRemember | ( | ) |
Check if session is to be saved across browser sessions.
Definition at line 157 of file Session.inc.php.
References DataObject\getData().
| Session::getSecondsCreated | ( | ) |
Get time (in seconds) since session was created.
Definition at line 125 of file Session.inc.php.
References DataObject\getData().
| Session::getSecondsLastUsed | ( | ) |
Get time (in seconds) since session was last used.
Definition at line 141 of file Session.inc.php.
References DataObject\getData().
| Session::getSessionData | ( | ) |
Get all session parameters.
Definition at line 173 of file Session.inc.php.
References DataObject\getData().
| Session::getSessionVar | ( | $key | ) |
Get a session variable's value.
| $key | string |
Definition at line 33 of file Session.inc.php.
Referenced by getCSRFToken().
| & Session::getUser | ( | ) |
Get user associated with this session (null if anonymous user).
Definition at line 205 of file Session.inc.php.
References $user.
| Session::getUserAgent | ( | ) |
Get user agent.
Definition at line 109 of file Session.inc.php.
References DataObject\getData().
| Session::getUserId | ( | ) |
Get user ID (0 if anonymous user).
Definition at line 66 of file Session.inc.php.
References DataObject\getData().
| Session::setDomain | ( | $data | ) |
Set the domain with which the session is registered
| $data | array |
Definition at line 197 of file Session.inc.php.
References DataObject\setData().
| Session::setIpAddress | ( | $ipAddress | ) |
Set IP address.
| $ipAddress | string |
Definition at line 101 of file Session.inc.php.
References DataObject\setData().
| Session::setRemember | ( | $remember | ) |
Set whether session is to be saved across browser sessions.
| $remember | boolean |
Definition at line 165 of file Session.inc.php.
References DataObject\setData().
| Session::setSecondsCreated | ( | $created | ) |
Set time (in seconds) since session was created.
| $created | int |
Definition at line 133 of file Session.inc.php.
References DataObject\setData().
| Session::setSecondsLastUsed | ( | $lastUsed | ) |
Set time (in seconds) since session was last used.
| $lastUsed | int |
Definition at line 149 of file Session.inc.php.
References DataObject\setData().
| Session::setSessionData | ( | $data | ) |
Set session parameters.
| $data | array |
Definition at line 181 of file Session.inc.php.
References DataObject\setData().
| Session::setSessionVar | ( | $key, | |
| $value | |||
| ) |
Get a session variable's value.
| $key | string |
| $value | mixed |
Definition at line 43 of file Session.inc.php.
Referenced by getCSRFToken().
| Session::setUserAgent | ( | $userAgent | ) |
Set user agent.
| $userAgent | string |
Definition at line 117 of file Session.inc.php.
References DataObject\setData().
| Session::setUserId | ( | $userId | ) |
Set user ID.
| $userId | int |
Definition at line 74 of file Session.inc.php.
References DAORegistry\getDAO(), DataObject\getData(), and DataObject\setData().
| Session::unsetSessionVar | ( | $key | ) |
Unset (delete) a session variable.
| $key | string |
Definition at line 52 of file Session.inc.php.
| Session::$user |
The User object associated with this session
Definition at line 25 of file Session.inc.php.
Referenced by getUser().