|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Collaboration diagram for ilAuthSession:Public Member Functions | |
| 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 (bool $a_status, int $a_user_id) | |
| Set authenticated. More... | |
| isFullyAuthenticated () | |
| isAnonymouslyAuthenticated () | |
| isExpired () | |
| Check if current is or was expired in last request. More... | |
| setExpired (bool $a_status) | |
| Set session expired. More... | |
| setUserId (int $a_id) | |
| Set authenticated user id. More... | |
| getUserId () | |
| Get authenticated user id. More... | |
| getId () | |
| get session id More... | |
Static Public Member Functions | |
| static | getInstance (ilLogger $logger) |
Protected Member Functions | |
| getLogger () | |
| validateExpiration () | |
| Check expired value of session. More... | |
| setId (string $a_id) | |
| Set id. More... | |
Private Member Functions | |
| __construct (ilLogger $logger) | |
Private Attributes | |
| const string | SESSION_AUTH_AUTHENTICATED = '_authsession_authenticated' |
| const string | SESSION_AUTH_USER_ID = '_authsession_user_id' |
| const string | SESSION_AUTH_EXPIRED = '_authsession_expired' |
| ilLogger | $logger |
| string | $id = '' |
| int | $user_id = 0 |
| bool | $expired = false |
| bool | $authenticated = false |
Static Private Attributes | |
| static ilAuthSession | $instance = null |
Definition at line 21 of file class.ilAuthSession.php.
|
private |
Definition at line 36 of file class.ilAuthSession.php.
References $logger, and ILIAS\Repository\logger().
Here is the call graph for this function:| ilAuthSession::getId | ( | ) |
get session id
Definition at line 213 of file class.ilAuthSession.php.
References $id.
Referenced by regenerateId(), and validateExpiration().
Here is the caller graph for this function:
|
static |
Definition at line 41 of file class.ilAuthSession.php.
References $instance, and $logger.
Referenced by ilInitialisation\initSession().
Here is the caller graph for this function:
|
protected |
Definition at line 49 of file class.ilAuthSession.php.
References $logger.
Referenced by init(), logout(), and regenerateId().
Here is the caller graph for this function:| ilAuthSession::getUserId | ( | ) |
Get authenticated user id.
Definition at line 180 of file class.ilAuthSession.php.
References $user_id.
Referenced by logout(), and ilAuthFrontend\migrateAccount().
Here is the caller graph for this function:| ilAuthSession::init | ( | ) |
Start auth session.
Definition at line 57 of file class.ilAuthSession.php.
References $user_id, ANONYMOUS_USER_ID, ilLogLevel\ERROR, ilSession\get(), getLogger(), ILIAS\Repository\int(), setId(), setUserId(), and validateExpiration().
Referenced by logout().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAuthSession::isAnonymouslyAuthenticated | ( | ) |
Definition at line 147 of file class.ilAuthSession.php.
References ANONYMOUS_USER_ID, and isValid().
Here is the call graph for this function:| ilAuthSession::isAuthenticated | ( | ) |
Check if session is authenticated.
Definition at line 122 of file class.ilAuthSession.php.
References ANONYMOUS_USER_ID.
Referenced by isValid(), and ilAuthFrontend\migrateAccount().
Here is the caller graph for this function:| ilAuthSession::isExpired | ( | ) |
Check if current is or was expired in last request.
Definition at line 155 of file class.ilAuthSession.php.
References ANONYMOUS_USER_ID.
Referenced by isValid(), and validateExpiration().
Here is the caller graph for this function:| ilAuthSession::isFullyAuthenticated | ( | ) |
Definition at line 142 of file class.ilAuthSession.php.
References ANONYMOUS_USER_ID, and isValid().
Here is the call graph for this function:| ilAuthSession::isValid | ( | ) |
Check if current session is valid (authenticated and not expired)
Definition at line 90 of file class.ilAuthSession.php.
References isAuthenticated(), and isExpired().
Referenced by isAnonymouslyAuthenticated(), and isFullyAuthenticated().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAuthSession::logout | ( | ) |
Logout user => stop session.
Definition at line 109 of file class.ilAuthSession.php.
References ANONYMOUS_USER_ID, getLogger(), getUserId(), init(), and setAuthenticated().
Here is the call graph for this function:| ilAuthSession::regenerateId | ( | ) |
Regenerate id.
Definition at line 98 of file class.ilAuthSession.php.
References getId(), getLogger(), and setId().
Referenced by setAuthenticated().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAuthSession::setAuthenticated | ( | bool | $a_status, |
| int | $a_user_id | ||
| ) |
Set authenticated.
Definition at line 130 of file class.ilAuthSession.php.
References regenerateId(), ilSession\set(), and setExpired().
Referenced by logout().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAuthSession::setExpired | ( | bool | $a_status | ) |
Set session expired.
Definition at line 163 of file class.ilAuthSession.php.
References ilSession\set().
Referenced by setAuthenticated(), and validateExpiration().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Set id.
Definition at line 205 of file class.ilAuthSession.php.
Referenced by init(), and regenerateId().
Here is the caller graph for this function:| ilAuthSession::setUserId | ( | int | $a_id | ) |
Set authenticated user id.
Definition at line 172 of file class.ilAuthSession.php.
Referenced by init().
Here is the caller graph for this function:
|
protected |
Check expired value of session.
Definition at line 188 of file class.ilAuthSession.php.
References getId(), isExpired(), ilSession\lookupExpireTime(), and setExpired().
Referenced by init().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 34 of file class.ilAuthSession.php.
|
private |
Definition at line 33 of file class.ilAuthSession.php.
|
private |
Definition at line 31 of file class.ilAuthSession.php.
Referenced by getId().
|
staticprivate |
Definition at line 27 of file class.ilAuthSession.php.
Referenced by getInstance().
|
private |
Definition at line 29 of file class.ilAuthSession.php.
Referenced by __construct(), getInstance(), and getLogger().
|
private |
Definition at line 32 of file class.ilAuthSession.php.
Referenced by getUserId(), and init().
|
private |
Definition at line 23 of file class.ilAuthSession.php.
|
private |
Definition at line 25 of file class.ilAuthSession.php.
|
private |
Definition at line 24 of file class.ilAuthSession.php.