ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Static Public Member Functions | |
static | checkExpiredSession () |
checks for possibly expired session should be called from ilAuthUtils::__initAuth() so it's called before session_start() is called More... | |
static | initSession () |
mark session with type regarding to the context. More... | |
static | handleLoginEvent ($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 | INTERNAL_DEBUG = false |
this controls the debuggin into a separate logfile (. More... | |
const | DEFAULT_MAX_COUNT = 0 |
default value for settings that have not been defined in setup or administration yet More... | |
const | DEFAULT_MIN_IDLE = 15 |
const | DEFAULT_MAX_IDLE = 30 |
const | DEFAULT_MAX_IDLE_AFTER_FIRST_REQUEST = 1 |
const | DEFAULT_ALLOW_CLIENT_MAINTENANCE = 1 |
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 |
Static Public Attributes | |
static | $session_types_controlled |
Static Private Member Functions | |
static | checkCurrentSessionIsAllowed (ilAuthSession $auth, $a_user_id) |
checks wether the current session exhaust the limit of sessions when limit is reached it deletes "firstRequestAbidencer" and checks again when limit is still reached it deletes "oneMinIdleSession" and checks again when limit is still reached the current session will be logged out More... | |
static | kickOneMinIdleSession (array $a_types) |
if sessions exist that relates to given session types and idled longer than min idle parameter, this method deletes one of these sessions More... | |
static | kickFirstRequestAbidencer (array $a_types) |
kicks sessions of users that abidence after login so people could not login and go for coffe break ;-) More... | |
static | isValidSession ($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 ($a_user_id) |
checks wether a given user login relates to an user with administrative permissions More... | |
static | debug ($a_debug_log_message) |
logs the given debug message in ilLog More... | |
Static Private Attributes | |
static | $setting_fields |
all fieldnames that are saved in settings table More... | |
static | $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 11 of file class.ilSessionControl.php.
|
staticprivate |
checks wether a given user login relates to an user with administrative permissions
ilRbacSystem $rbacsystem
integer | $a_user_id |
Definition at line 480 of file class.ilSessionControl.php.
|
staticprivate |
checks wether the current session exhaust the limit of sessions when limit is reached it deletes "firstRequestAbidencer" and checks again when limit is still reached it deletes "oneMinIdleSession" and checks again when limit is still reached the current session will be logged out
ilSetting $ilSetting ilAppEventHandler $ilAppEventHandler
ilAuthSession | $a_auth |
Definition at line 234 of file class.ilSessionControl.php.
References $_SESSION, $ilSetting, array, ilSessionStatistics\createRawEntry(), ilAuthSession\logout(), ilUtil\redirect(), ilSession\SESSION_CLOSE_LIMIT, ilSession\setClosingContext(), and time.
|
static |
checks for possibly expired session should be called from ilAuthUtils::__initAuth() so it's called before session_start() is called
ilSetting $ilSetting ilLanguage $lng ilAppEventHandler $ilAppEventHandler
Definition at line 85 of file class.ilSessionControl.php.
References $_COOKIE, $_GET, $ilSetting, $lng, array, isValidSession(), and ilUtil\redirect().
Referenced by ilAuthUtils\_initAuth().
|
staticprivate |
logs the given debug message in ilLog
ilLog $ilLog
string | $a_debug_log_message |
Definition at line 499 of file class.ilSessionControl.php.
References $ilLog, and Monolog\Handler\error_log().
|
static |
returns number of valid sessions relating to given session types
ilDB $ilDB
array | $a_types |
Definition at line 318 of file class.ilSessionControl.php.
References $ilDB, $query, $res, $row, array, ilDBConstants\FETCHMODE_OBJECT, and time.
Referenced by ilSessionStatisticsGUI\renderCurrentBasics().
|
static |
returns the array of setting fields
Definition at line 513 of file class.ilSessionControl.php.
Referenced by ilSetup\checkClientSessionSettings(), ilSetupGUI\displaySessions(), ilSetup\getSessionSettings(), and ilSetup\setSessionSettings().
|
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 164 of file class.ilSessionControl.php.
References $_SESSION, $ilSetting, and ilObjUser\_lookupId().
Referenced by ilAuthFrontend\handleAuthenticationSuccess(), and ilAuthBase\loginObserver().
|
static |
reset sessions type to unknown
Definition at line 208 of file class.ilSessionControl.php.
References $_SESSION, and $ilSetting.
Referenced by ilAuthBase\logoutObserver().
|
static |
mark session with type regarding to the context.
should be called from ilAuthBase::initAuth()
Definition at line 140 of file class.ilSessionControl.php.
References $_SESSION, and $ilSetting.
Referenced by ilAuthBase\initAuth().
|
staticprivate |
checks if session exists for given id and if it is still valid
ilDB $ilDB ilSetting $ilSetting
string | $a_sid |
Definition at line 421 of file class.ilSessionControl.php.
References $ilDB, $ilSetting, $query, $res, $row, array, and time.
|
staticprivate |
kicks sessions of users that abidence after login so people could not login and go for coffe break ;-)
ilDB $ilDB ilSetting $ilSetting
Definition at line 384 of file class.ilSessionControl.php.
References $ilDB, $ilSetting, $query, $res, $row, ilSession\_destroy(), array, ilDBConstants\FETCHMODE_OBJECT, ilSession\SESSION_CLOSE_FIRST, and time.
|
staticprivate |
if sessions exist that relates to given session types and idled longer than min idle parameter, this method deletes one of these sessions
ilDB $ilDB ilSetting $ilSetting
array | $a_types |
Definition at line 344 of file class.ilSessionControl.php.
References $ilDB, $ilSetting, $query, $res, $row, ilSession\_destroy(), array, ilDBConstants\FETCHMODE_OBJECT, ilSession\SESSION_CLOSE_IDLE, and time.
|
staticprivate |
removes a session cookie, so it is not sent by browser anymore
Definition at line 466 of file class.ilSessionControl.php.
References ilUtil\setCookie().
|
static |
Definition at line 59 of file class.ilSessionControl.php.
Referenced by ilSession\_writeData(), ilSessionStatistics\getNumberOfActiveRawSessions(), ilSessionStatistics\getRawData(), 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 34 of file class.ilSessionControl.php.
const ilSessionControl::DEFAULT_ALLOW_CLIENT_MAINTENANCE = 1 |
Definition at line 27 of file class.ilSessionControl.php.
Referenced by ilSetup\getSessionSettings(), ilObjUserFolderGUI\initFormGeneralSettings(), and ilObjUserFolderGUI\saveGeneralSettingsObject().
const ilSessionControl::DEFAULT_MAX_COUNT = 0 |
default value for settings that have not been defined in setup or administration yet
Definition at line 23 of file class.ilSessionControl.php.
Referenced by ilObjUserFolderGUI\generalSettingsObject(), ilSessionStatistics\getLimitForSlot(), ilSetup\getSessionSettings(), ilSessionStatisticsGUI\renderCurrentBasics(), and ilSessionStatistics\updateLimitLog().
const ilSessionControl::DEFAULT_MAX_IDLE = 30 |
Definition at line 25 of file class.ilSessionControl.php.
Referenced by ilObjUserFolderGUI\generalSettingsObject(), ilSession\getExpireValue(), ilSession\getIdleValue(), ilSetup\getSessionSettings(), and ilSessionStatisticsGUI\renderCurrentBasics().
const ilSessionControl::DEFAULT_MAX_IDLE_AFTER_FIRST_REQUEST = 1 |
Definition at line 26 of file class.ilSessionControl.php.
Referenced by ilObjUserFolderGUI\generalSettingsObject(), ilSetup\getSessionSettings(), and ilSessionStatisticsGUI\renderCurrentBasics().
const ilSessionControl::DEFAULT_MIN_IDLE = 15 |
Definition at line 24 of file class.ilSessionControl.php.
Referenced by ilObjUserFolderGUI\generalSettingsObject(), ilObjSCORMInitData\getIliasScormVars(), ilSCORM13Player\getPlayer(), ilSetup\getSessionSettings(), and ilSessionStatisticsGUI\renderCurrentBasics().
const ilSessionControl::INTERNAL_DEBUG = false |
this controls the debuggin into a separate logfile (.
/session.log)
Definition at line 17 of file class.ilSessionControl.php.
const ilSessionControl::SESSION_TYPE_ADMIN = 2 |
Definition at line 49 of file class.ilSessionControl.php.
const ilSessionControl::SESSION_TYPE_ANONYM = 4 |
Definition at line 51 of file class.ilSessionControl.php.
const ilSessionControl::SESSION_TYPE_SYSTEM = 1 |
Definition at line 48 of file class.ilSessionControl.php.
const ilSessionControl::SESSION_TYPE_UNKNOWN = 0 |
session types from which one is assigned to each session
Definition at line 47 of file class.ilSessionControl.php.
const ilSessionControl::SESSION_TYPE_USER = 3 |
Definition at line 50 of file class.ilSessionControl.php.