| 
    ILIAS
    release_9 Revision v9.13-25-g2c18ec4c24f
    
   | 
  
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
 Collaboration diagram for ilSessionControl: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_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 | 
Static Public Attributes | |
| static array | $session_types_controlled | 
Static Private Member Functions | |
| static | checkCurrentSessionIsAllowed (ilAuthSession $auth, int $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 (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... | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning
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 387 of file class.ilSessionControl.php.
References $DIC, and SYSTEM_FOLDER_ID.
      
  | 
  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
Definition at line 161 of file class.ilSessionControl.php.
References $DIC, $ilSetting, ilSessionStatistics\createRawEntry(), ilSession\get(), ILIAS\Repository\int(), ilAuthSession\logout(), ilUtil\redirect(), ilSession\SESSION_CLOSE_LIMIT, and ilSession\setClosingContext().
 Here is the call graph for this function:
      
  | 
  staticprivate | 
logs the given debug message in
| string | $a_debug_log_message | 
Definition at line 411 of file class.ilSessionControl.php.
References $DIC.
      
  | 
  static | 
returns number of valid sessions relating to given session types
Definition at line 237 of file class.ilSessionControl.php.
References $DIC, $ilDB, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilSessionStatisticsGUI\renderCurrentBasics().
 Here is the caller graph for this function:
      
  | 
  static | 
returns the array of setting fields
Definition at line 425 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 89 of file class.ilSessionControl.php.
References $DIC, $ilSetting, ilObjUser\_lookupId(), ANONYMOUS_USER_ID, ilSession\SESSION_HANDLING_FIXED, ilSession\SESSION_HANDLING_LOAD_DEPENDENT, and ilSession\set().
Referenced by ilAuthFrontend\handleAuthenticationSuccess().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  static | 
reset sessions type to unknown
Definition at line 136 of file class.ilSessionControl.php.
References $DIC, $ilSetting, ilSession\get(), and ilSession\set().
 Here is the call graph for this function:
      
  | 
  staticprivate | 
checks if session exists for given id and if it is still valid
Definition at line 332 of file class.ilSessionControl.php.
      
  | 
  staticprivate | 
kicks sessions of users that abidence after login so people could not login and go for coffe break ;-)
Definition at line 293 of file class.ilSessionControl.php.
References $DIC, $ilDB, $ilSetting, $res, ilSession\_destroy(), ilDBConstants\FETCHMODE_OBJECT, ILIAS\Repository\int(), and ilSession\SESSION_CLOSE_FIRST.
 Here is the call graph for this function:
      
  | 
  staticprivate | 
if sessions exist that relates to given session types and idled longer than min idle parameter, this method deletes one of these sessions
Definition at line 258 of file class.ilSessionControl.php.
References $DIC, $ilDB, $ilSetting, $res, ilSession\_destroy(), ilDBConstants\FETCHMODE_OBJECT, ILIAS\Repository\int(), and ilSession\SESSION_CLOSE_IDLE.
 Here is the call graph for this function:
      
  | 
  staticprivate | 
removes a session cookie, so it is not sent by browser anymore
Definition at line 374 of file class.ilSessionControl.php.
References ilUtil\setCookie().
 Here is the call graph for this function:
      
  | 
  static | 
Definition at line 67 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 78 of file class.ilSessionControl.php.
      
  | 
  staticprivate | 
all fieldnames that are saved in settings table
Definition at line 41 of file class.ilSessionControl.php.
| const ilSessionControl::DEFAULT_ALLOW_CLIENT_MAINTENANCE = 1 | 
Definition at line 34 of file class.ilSessionControl.php.
Referenced by 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 30 of file class.ilSessionControl.php.
Referenced by ilObjUserFolderGUI\generalSettingsObject(), ilSessionStatistics\getLimitForSlot(), ilSessionStatisticsGUI\renderCurrentBasics(), and ilSessionStatistics\updateLimitLog().
| const ilSessionControl::DEFAULT_MAX_IDLE = 30 | 
Definition at line 32 of file class.ilSessionControl.php.
Referenced by ilSession\_duplicate(), ilObjUserFolderGUI\generalSettingsObject(), ilSession\getIdleValue(), and ilSessionStatisticsGUI\renderCurrentBasics().
| const ilSessionControl::DEFAULT_MAX_IDLE_AFTER_FIRST_REQUEST = 1 | 
Definition at line 33 of file class.ilSessionControl.php.
Referenced by ilObjUserFolderGUI\generalSettingsObject(), and ilSessionStatisticsGUI\renderCurrentBasics().
| const ilSessionControl::DEFAULT_MIN_IDLE = 15 | 
Definition at line 31 of file class.ilSessionControl.php.
Referenced by ilObjUserFolderGUI\generalSettingsObject(), ilObjSCORMInitData\getIliasScormVars(), ilSCORM13PlayerGUI\getPlayer(), and ilSessionStatisticsGUI\renderCurrentBasics().
      
  | 
  private | 
Definition at line 56 of file class.ilSessionControl.php.
      
  | 
  private | 
Definition at line 58 of file class.ilSessionControl.php.
      
  | 
  private | 
Definition at line 60 of file class.ilSessionControl.php.
      
  | 
  private | 
Definition at line 55 of file class.ilSessionControl.php.
      
  | 
  private | 
session types from which one is assigned to each session
Definition at line 54 of file class.ilSessionControl.php.
      
  | 
  private | 
Definition at line 57 of file class.ilSessionControl.php.