Definition at line 21 of file class.ilSessionControl.php.
◆ checkAdministrationPermission()
static ilSessionControl::checkAdministrationPermission |
( |
int |
$a_user_id | ) |
|
|
staticprivate |
◆ debug()
static ilSessionControl::debug |
( |
string |
$a_debug_log_message | ) |
|
|
staticprivate |
◆ getExistingSessionCount()
static ilSessionControl::getExistingSessionCount |
( |
array |
$a_types | ) |
|
|
static |
◆ getSettingFields()
static ilSessionControl::getSettingFields |
( |
| ) |
|
|
static |
◆ handleLoginEvent()
static ilSessionControl::handleLoginEvent |
( |
string |
$a_login, |
|
|
ilAuthSession |
$auth_session |
|
) |
| |
|
static |
◆ handleLogoutEvent()
static ilSessionControl::handleLogoutEvent |
( |
| ) |
|
|
static |
◆ isValidSession()
static ilSessionControl::isValidSession |
( |
string |
$a_sid | ) |
|
|
staticprivate |
Definition at line 121 of file class.ilSessionControl.php.
References $DIC, $ilDB, and $res.
125 $ilDB = $DIC[
'ilDB'];
127 $query =
'SELECT session_id, expires FROM usr_session ' .
128 'WHERE session_id = %s';
130 $res =
$ilDB->queryF($query, [
'text'], [$a_sid]);
137 if ($row[
'expires'] > $ts) {
138 self::debug(__METHOD__ .
' --> Found a valid session with id (' . $a_sid .
')');
141 self::debug(__METHOD__ .
' --> Found an expired session with id (' . $a_sid .
')');
145 if (count($sessions) === 1) {
146 self::debug(__METHOD__ .
' --> Exact one valid session found for session id (' . $a_sid .
')');
151 if (count($sessions) > 1) {
152 self::debug(__METHOD__ .
' --> Strange!!! More than one sessions found for given session id! (' . $a_sid .
')');
154 self::debug(__METHOD__ .
' --> No valid session found for session id (' . $a_sid .
')');
◆ removeSessionCookie()
static ilSessionControl::removeSessionCookie |
( |
| ) |
|
|
staticprivate |
Definition at line 160 of file class.ilSessionControl.php.
References ilUtil\setCookie().
163 self::debug(
'Session cookie has been removed');
static setCookie(string $a_cookie_name, string $a_cookie_value='', bool $a_also_set_super_global=true, bool $a_set_cookie_invalid=false)
◆ $session_types_controlled
array ilSessionControl::$session_types_controlled |
|
static |
◆ $session_types_not_controlled
array ilSessionControl::$session_types_not_controlled |
|
staticprivate |
Initial value:= [
self::SESSION_TYPE_UNKNOWN,
self::SESSION_TYPE_SYSTEM,
self::SESSION_TYPE_ADMIN
]
all session types that will be involved when count of sessions will be determined or when idleing sessions will be destroyed
Definition at line 59 of file class.ilSessionControl.php.
◆ $setting_fields
list< string > ilSessionControl::$setting_fields |
|
staticprivate |
◆ DEFAULT_ALLOW_CLIENT_MAINTENANCE
const int ilSessionControl::DEFAULT_ALLOW_CLIENT_MAINTENANCE = 1 |
◆ DEFAULT_MIN_IDLE
const int ilSessionControl::DEFAULT_MIN_IDLE = 15 |
◆ SESSION_TYPE_ADMIN
const int ilSessionControl::SESSION_TYPE_ADMIN = 2 |
|
private |
◆ SESSION_TYPE_ANONYM
const int ilSessionControl::SESSION_TYPE_ANONYM = 4 |
|
private |
◆ SESSION_TYPE_KEY
const string ilSessionControl::SESSION_TYPE_KEY = 'SessionType' |
|
private |
◆ SESSION_TYPE_SYSTEM
const int ilSessionControl::SESSION_TYPE_SYSTEM = 1 |
|
private |
◆ SESSION_TYPE_UNKNOWN
const int ilSessionControl::SESSION_TYPE_UNKNOWN = 0 |
|
private |
◆ SESSION_TYPE_USER
const int ilSessionControl::SESSION_TYPE_USER = 3 |
|
private |
The documentation for this class was generated from the following file: