ILIAS
trunk Revision v11.0_alpha-1744-gb0451eebef4
|
Static Public Member Functions | |
static | handleLoginEvent (string $a_login, ilAuthSession $auth_session) |
when current session is allowed to be created it marks it with type regarding to the sessions user context. More... | |
static | handleLogoutEvent () |
reset sessions type to unknown More... | |
static | getExistingSessionCount (array $a_types) |
returns number of valid sessions relating to given session types More... | |
static | getSettingFields () |
returns the array of setting fields More... | |
Data Fields | |
const | DEFAULT_MIN_IDLE = 15 |
default value for settings that have not been defined in setup or administration yet More... | |
const | DEFAULT_ALLOW_CLIENT_MAINTENANCE = 1 |
Static Public Attributes | |
static array | $session_types_controlled |
Static Private Member Functions | |
static | isValidSession (string $a_sid) |
checks if session exists for given id and if it is still valid More... | |
static | removeSessionCookie () |
removes a session cookie, so it is not sent by browser anymore More... | |
static | checkAdministrationPermission (int $a_user_id) |
checks wether a given user login relates to an user with administrative permissions More... | |
static | debug (string $a_debug_log_message) |
logs the given debug message in More... | |
Private Attributes | |
const | SESSION_TYPE_UNKNOWN = 0 |
session types from which one is assigned to each session More... | |
const | SESSION_TYPE_SYSTEM = 1 |
const | SESSION_TYPE_ADMIN = 2 |
const | SESSION_TYPE_USER = 3 |
const | SESSION_TYPE_ANONYM = 4 |
const | SESSION_TYPE_KEY = "SessionType" |
Static Private Attributes | |
static array | $setting_fields |
all fieldnames that are saved in settings table More... | |
static array | $session_types_not_controlled |
all session types that will be involved when count of sessions will be determined or when idleing sessions will be destroyed More... | |
Definition at line 24 of file class.ilSessionControl.php.
|
staticprivate |
checks wether a given user login relates to an user with administrative permissions
ilRbacSystem $rbacsystem
Definition at line 202 of file class.ilSessionControl.php.
References $DIC, and SYSTEM_FOLDER_ID.
|
staticprivate |
logs the given debug message in
string | $a_debug_log_message |
Definition at line 226 of file class.ilSessionControl.php.
References $DIC.
|
static |
returns number of valid sessions relating to given session types
Definition at line 125 of file class.ilSessionControl.php.
References $DIC, $ilDB, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilSessionStatisticsGUI\renderCurrentBasics().
|
static |
returns the array of setting fields
Definition at line 240 of file class.ilSessionControl.php.
|
static |
when current session is allowed to be created it marks it with type regarding to the sessions user context.
when session is not allowed to be created it will be destroyed.
Definition at line 81 of file class.ilSessionControl.php.
References $DIC, $ilSetting, $user_id, ilObjUser\_lookupId(), ANONYMOUS_USER_ID, and ilSession\set().
Referenced by ilAuthFrontend\handleAuthenticationSuccess().
|
static |
reset sessions type to unknown
Definition at line 118 of file class.ilSessionControl.php.
|
staticprivate |
checks if session exists for given id and if it is still valid
Definition at line 147 of file class.ilSessionControl.php.
|
staticprivate |
removes a session cookie, so it is not sent by browser anymore
Definition at line 189 of file class.ilSessionControl.php.
References ilUtil\setCookie().
|
static |
Definition at line 59 of file class.ilSessionControl.php.
Referenced by ilSessionStatistics\getNumberOfActiveRawSessions(), ilSessionStatistics\getRawData(), ilSession\lookupExpireTime(), and ilSessionStatisticsGUI\renderCurrentBasics().
|
staticprivate |
all session types that will be involved when count of sessions will be determined or when idleing sessions will be destroyed
all session types that will be ignored when count of sessions will be determined or when idleing sessions will be destroyed
Definition at line 70 of file class.ilSessionControl.php.
|
staticprivate |
all fieldnames that are saved in settings table
Definition at line 38 of file class.ilSessionControl.php.
const ilSessionControl::DEFAULT_ALLOW_CLIENT_MAINTENANCE = 1 |
Definition at line 31 of file class.ilSessionControl.php.
Referenced by ilObjUserFolderGUI\initFormGeneralSettings().
const ilSessionControl::DEFAULT_MIN_IDLE = 15 |
default value for settings that have not been defined in setup or administration yet
Definition at line 30 of file class.ilSessionControl.php.
Referenced by ilObjSCORMInitData\getIliasScormVars(), and ilSCORM13PlayerGUI\getPlayer().
|
private |
Definition at line 48 of file class.ilSessionControl.php.
|
private |
Definition at line 50 of file class.ilSessionControl.php.
|
private |
Definition at line 52 of file class.ilSessionControl.php.
|
private |
Definition at line 47 of file class.ilSessionControl.php.
|
private |
session types from which one is assigned to each session
Definition at line 46 of file class.ilSessionControl.php.
|
private |
Definition at line 49 of file class.ilSessionControl.php.