Write session data and end session.
Dump the current session informations.
static& OMV\Session::getInstance |
( |
| ) |
|
|
static |
Returns the session singleton.
- Returns
- The session object.
Get the role of the user from this session.
- Returns
- Returns the user role, otherwise FALSE.
OMV\Session::getUsername |
( |
| ) |
|
Get the name of the user from this session.
- Returns
- Returns the current user name, otherwise FALSE.
OMV\Session::initialize |
( |
|
$username, |
|
|
|
$role |
|
) |
| |
Initialize the session.
- Parameters
-
username | The user name. |
role | The user role. |
- Returns
- The session id.
OMV\Session::isAuthenticated |
( |
| ) |
|
Is this session authenticated?
- Returns
- Returns TRUE if the session is authenticated, otherwise FALSE.
OMV\Session::isTimeout |
( |
| ) |
|
Check if the last access if not older than the defined timeout value.
- Returns
- TRUE if the session is timed out, otherwise FALSE.
OMV\Session::updateLastAccess |
( |
| ) |
|
Update the time on which the last access took place.
OMV\Session::validate |
( |
| ) |
|
Check if the session is valid. In case of an error the session is destroyed and an exception is thrown.
OMV\Session::validateAuthentication |
( |
| ) |
|
Validate the authentication. In case of an error the session is destroyed and an exception is thrown.
OMV\Session::validateIpAddress |
( |
| ) |
|
Validate the IP address. In case of an error the session is destroyed and an exception is thrown.
OMV\Session::validateTimeout |
( |
| ) |
|
Validate the timeout. In case of an error the session is destroyed and an exception is thrown.
OMV\Session::validateUser |
( |
| ) |
|
Validate the user. In case of an error the session is destroyed and an exception is thrown.
OMV\Session::validateUserAgent |
( |
| ) |
|
Validate the browser user agent. In case of an error the session is destroyed and an exception is thrown.
The documentation for this class was generated from the following file: