ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | |
getLogger () | |
init () | |
Start auth session. More... | |
isValid () | |
Check if current session is valid (authenticated and not expired) More... | |
regenerateId () | |
Regenerate id. More... | |
logout () | |
Logout user => stop session. More... | |
isAuthenticated () | |
Check if session is authenticated. More... | |
setAuthenticated ($a_status, $a_user_id) | |
Set authenticated. More... | |
isExpired () | |
Check if current is or was expired in last request. More... | |
setExpired ($a_status) | |
Set session expired. More... | |
setUserId ($a_id) | |
Set authenticated user id. More... | |
getUserId () | |
Get authenticated user id. More... | |
setId ($a_id) | |
getId () | |
Static Public Member Functions | |
static | getInstance () |
Get instance. More... | |
Data Fields | |
const | SESSION_AUTH_AUTHENTICATED = '_authsession_authenticated' |
const | SESSION_AUTH_USER_ID = '_authsession_user_id' |
const | SESSION_AUTH_EXPIRED = '_authsession_expired' |
Protected Member Functions | |
validateExpiration () | |
Check expired value of session. More... | |
Private Member Functions | |
__construct () | |
Consctructor. More... | |
Private Attributes | |
$logger = null | |
$id = '' | |
$user_id = 0 | |
$expired = false | |
$authenticated = false | |
Static Private Attributes | |
static | $instance = null |
Definition at line 13 of file class.ilAuthSession.php.
|
private |
Consctructor.
Definition at line 31 of file class.ilAuthSession.php.
References ilLoggerFactory\getLogger().
ilAuthSession::getId | ( | ) |
Definition at line 207 of file class.ilAuthSession.php.
References $id.
Referenced by regenerateId(), and validateExpiration().
|
static |
Get instance.
Definition at line 40 of file class.ilAuthSession.php.
Referenced by ilInitialisation\initSession().
ilAuthSession::getLogger | ( | ) |
Definition at line 52 of file class.ilAuthSession.php.
References $logger.
Referenced by init(), logout(), and regenerateId().
ilAuthSession::getUserId | ( | ) |
Get authenticated user id.
Definition at line 177 of file class.ilAuthSession.php.
References $user_id.
Referenced by logout(), and ilAuthFrontend\migrateAccount().
ilAuthSession::init | ( | ) |
Start auth session.
Definition at line 61 of file class.ilAuthSession.php.
References $user_id, ilSession\get(), getLogger(), setId(), setUserId(), and validateExpiration().
ilAuthSession::isAuthenticated | ( | ) |
Check if session is authenticated.
Definition at line 122 of file class.ilAuthSession.php.
References $authenticated.
Referenced by isValid(), and ilAuthFrontend\migrateAccount().
ilAuthSession::isExpired | ( | ) |
Check if current is or was expired in last request.
Definition at line 149 of file class.ilAuthSession.php.
References $expired.
Referenced by isValid(), and validateExpiration().
ilAuthSession::isValid | ( | ) |
Check if current session is valid (authenticated and not expired)
Definition at line 92 of file class.ilAuthSession.php.
References isAuthenticated(), and isExpired().
ilAuthSession::logout | ( | ) |
Logout user => stop session.
Definition at line 111 of file class.ilAuthSession.php.
References getLogger(), getUserId(), and setAuthenticated().
Referenced by ilSessionControl\checkCurrentSessionIsAllowed().
ilAuthSession::regenerateId | ( | ) |
Regenerate id.
Definition at line 100 of file class.ilAuthSession.php.
References getId(), getLogger(), and setId().
Referenced by setAuthenticated().
ilAuthSession::setAuthenticated | ( | $a_status, | |
$a_user_id | |||
) |
Set authenticated.
authentication | status $a_status |
Definition at line 132 of file class.ilAuthSession.php.
References regenerateId(), ilSession\set(), and setExpired().
Referenced by logout().
ilAuthSession::setExpired | ( | $a_status | ) |
Set session expired.
type | $a_status |
Definition at line 158 of file class.ilAuthSession.php.
References ilSession\set().
Referenced by setAuthenticated(), and validateExpiration().
ilAuthSession::setId | ( | $a_id | ) |
Definition at line 202 of file class.ilAuthSession.php.
Referenced by init(), and regenerateId().
ilAuthSession::setUserId | ( | $a_id | ) |
Set authenticated user id.
int | $a_id |
Definition at line 168 of file class.ilAuthSession.php.
Referenced by init().
|
protected |
Check expired value of session.
Definition at line 186 of file class.ilAuthSession.php.
References getId(), isExpired(), ilSession\lookupExpireTime(), setExpired(), and time.
Referenced by init().
|
private |
Definition at line 26 of file class.ilAuthSession.php.
Referenced by isAuthenticated().
|
private |
Definition at line 25 of file class.ilAuthSession.php.
Referenced by isExpired().
|
private |
Definition at line 23 of file class.ilAuthSession.php.
Referenced by getId().
|
staticprivate |
Definition at line 19 of file class.ilAuthSession.php.
|
private |
Definition at line 21 of file class.ilAuthSession.php.
Referenced by getLogger().
|
private |
Definition at line 24 of file class.ilAuthSession.php.
Referenced by getUserId(), and init().
const ilAuthSession::SESSION_AUTH_AUTHENTICATED = '_authsession_authenticated' |
Definition at line 15 of file class.ilAuthSession.php.
const ilAuthSession::SESSION_AUTH_EXPIRED = '_authsession_expired' |
Definition at line 17 of file class.ilAuthSession.php.
const ilAuthSession::SESSION_AUTH_USER_ID = '_authsession_user_id' |
Definition at line 16 of file class.ilAuthSession.php.