OpenMediaVault
0.6 (Kralizec)
The open network attached storage solution
|
Public Member Functions | |
start () | |
commit () | |
destroy () | |
initialize ($username, $role) | |
getRole () | |
isAuthenticated () | |
getUsername () | |
updateLastAccess () | |
isTimeout () | |
validate () | |
dump () | |
![]() | |
__construct () | |
getLastError () | |
Static Public Member Functions | |
static & | getInstance () |
Additional Inherited Members | |
![]() | |
setLastError ($error) | |
debug () | |
This file is part of OpenMediaVault.
OpenMediaVault is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
OpenMediaVault is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with OpenMediaVault. If not, see http://www.gnu.org/licenses/.
OMVSession::commit | ( | ) |
Write session data and end session.
OMVSession::destroy | ( | ) |
Destroy session.
OMVSession::dump | ( | ) |
Dump the current session informations.
|
static |
Returns the session singleton.
OMVSession::getRole | ( | ) |
Get the role of the user from this session.
OMVSession::getUsername | ( | ) |
Get the name of the user from this session.
OMVSession::initialize | ( | $username, | |
$role | |||
) |
Initialize the session.
username | The user name. |
role | The user role. |
OMVSession::isAuthenticated | ( | ) |
Is this session authenticated?
OMVSession::isTimeout | ( | ) |
Check if the last access if not older than the defined timeout value.
OMVSession::start | ( | ) |
Start session.
OMVSession::updateLastAccess | ( | ) |
Update the time on which the last access took place.
OMVSession::validate | ( | ) |
Do some checks. In case of an error an exception is thrown.