ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Static Public Member Functions | |
static | _getData ($a_session_id) |
Get session data from table. More... | |
static | lookupExpireTime ($a_session_id) |
Lookup expire time for a specific session @global ilDB $ilDB. More... | |
static | _writeData ($a_session_id, $a_data) |
Write session data. More... | |
static | _exists ($a_session_id) |
Check whether session exists. More... | |
static | _destroy ($a_session_id, $a_closing_context=null, $a_expired_at=null) |
Destroy session. More... | |
static | _destroyByUserId ($a_user_id) |
Destroy session. More... | |
static | _destroyExpiredSessions () |
Destroy expired sessions. More... | |
static | _duplicate ($a_session_id) |
Duplicate session. More... | |
static | getExpireValue ($fixedMode=false) |
Returns the expiration timestamp in seconds. More... | |
static | getIdleValue ($fixedMode=false) |
Returns the idle time in seconds. More... | |
static | getSessionExpireValue () |
Returns the session expiration value. More... | |
static | _getUsersWithIp ($a_ip) |
Get the active users with a specific remote ip address. More... | |
static | set ($a_var, $a_val) |
Set a value. More... | |
static | get ($a_var) |
Get a value. More... | |
static | clear ($a_var) |
Unset a value. More... | |
static | setClosingContext ($a_context) |
set closing context (for statistics) More... | |
static | getClosingContext () |
get closing context (for statistics) More... | |
static | isWebAccessWithoutSessionEnabled () |
static | enableWebAccessWithoutSession ($enable_web_access_without_session) |
Data Fields | |
const | SESSION_HANDLING_FIXED = 0 |
const | SESSION_HANDLING_LOAD_DEPENDENT = 1 |
const | SESSION_CLOSE_USER = 1 |
const | SESSION_CLOSE_EXPIRE = 2 |
const | SESSION_CLOSE_FIRST = 3 |
const | SESSION_CLOSE_IDLE = 4 |
const | SESSION_CLOSE_LIMIT = 5 |
const | SESSION_CLOSE_LOGIN = 6 |
const | SESSION_CLOSE_PUBLIC = 7 |
const | SESSION_CLOSE_TIME = 8 |
const | SESSION_CLOSE_IP = 9 |
const | SESSION_CLOSE_SIMUL = 10 |
const | SESSION_CLOSE_INACTIVE = 11 |
const | SESSION_CLOSE_CAPTCHA = 12 |
Static Protected Attributes | |
static | $enable_web_access_without_session = false |
Static Private Attributes | |
static | $closing_context = null |
@externalTableAccess ilObjUser on usr_session
Definition at line 15 of file class.ilSession.php.
|
static |
Destroy session.
string|array | session id|s |
int | closing context |
int|bool | expired at timestamp |
Definition at line 200 of file class.ilSession.php.
References $closing_context, $ilDB, ilSessionStatistics\closeRawEntry(), and ilSessionIStorage\destroySession().
Referenced by _destroyExpiredSessions(), ilSessionDBHandler\destroy(), ilSessionControl\kickFirstRequestAbidencer(), ilSessionControl\kickOneMinIdleSession(), and ilSessionTest\testBasicSessionBehaviour().
|
static |
Destroy session.
string | session id |
Definition at line 240 of file class.ilSession.php.
References $ilDB.
Referenced by ilObjUser\delete(), and ilSessionTest\testBasicSessionBehaviour().
|
static |
Destroy expired sessions.
Definition at line 254 of file class.ilSession.php.
References $ilDB, $res, $row, and _destroy().
Referenced by _writeData(), ilSessionStatisticsGUI\adminSync(), ilSessionDBHandler\gc(), and ilSessionTest\testBasicSessionBehaviour().
|
static |
Duplicate session.
string | session id |
Definition at line 280 of file class.ilSession.php.
References $ilDB, $query, $res, $row, and _writeData().
Referenced by ilContainer\cloneAllObject(), ilDclContentExporter\exportAsync(), ilECSTaskScheduler\initNextExecution(), and ilSessionTest\testBasicSessionBehaviour().
|
static |
Check whether session exists.
string | session id |
Definition at line 180 of file class.ilSession.php.
References $ilDB.
Referenced by _writeData(), ilInitialisation\setSessionHandler(), and ilSessionTest\testBasicSessionBehaviour().
|
static |
Get session data from table.
According to https://bugs.php.net/bug.php?id=70520 read data must return a string. Otherwise session_regenerate_id might fail with php 7.
string | session id |
Definition at line 69 of file class.ilSession.php.
References $ilDB.
Referenced by ilSessionDBHandler\read(), and ilSessionTest\testBasicSessionBehaviour().
|
static |
Get the active users with a specific remote ip address.
string | ip address |
Definition at line 378 of file class.ilSession.php.
|
static |
Write session data.
string | session id |
string | session data |
Definition at line 113 of file class.ilSession.php.
References $_SERVER, $_SESSION, $ilDB, ilSessionControl\$session_types_controlled, _destroyExpiredSessions(), _exists(), ilSessionStatistics\aggretateRaw(), and ilSessionStatistics\createRawEntry().
Referenced by _duplicate(), ilSessionTest\testBasicSessionBehaviour(), and ilSessionDBHandler\write().
|
static |
Unset a value.
return
Definition at line 423 of file class.ilSession.php.
References $_SESSION.
Referenced by ilLMObjectGUI\cancelDelete(), ilObjSCORM2004LearningModuleGUI\cancelDeleteExportFile(), ilSCORM2004ScoGUI\cancelDeleteExportFile(), ilObjSurveyQuestionPoolGUI\cancelDeleteExportFileObject(), ilObjectGUI\cancelDeleteObject(), ilObjectGUI\cancelObject(), ilObjUserGUI\cancelObject(), ilObjectGUI\checkPermission(), ilObjectGUI\confirmedDeleteObject(), ilRepUtil\deleteObjects(), ilTemplate\fillMessage(), ilUtil\infoPanel(), ilHelpGUI\resetCurrentPage(), ilTemplate\show(), and ilPageObjectGUI\showPage().
|
static |
boolean | $enable_web_access_without_session |
Definition at line 461 of file class.ilSession.php.
References $enable_web_access_without_session.
Referenced by ilNotificationGUI\getOSDNotificationsObject(), ilOnScreenChatGUI\getUserProfileImages(), ilNotificationGUI\removeOSDNotificationsObject(), and ilOnScreenChatGUI\verifyLogin().
|
static |
Get a value.
return
Definition at line 412 of file class.ilSession.php.
References $_SESSION.
Referenced by ilMailFolderGUI\addSubfolderCommands(), ilUserRequestTargetAdjustment\adjust(), ilPersonalSettingsGUI\allowPasswordChange(), ilObjectGUI\confirmedDeleteObject(), ilStartUpGUI\doMigration(), ilStartUpGUI\doMigrationNewAccount(), ilMailGUI\executeCommand(), ilTemplate\fillMessage(), ilHelpMappingTableGUI\getChapters(), ilMailFormCall\getContextId(), ilMailFormCall\getContextParameters(), ilAwarenessGUI\getMainMenuHTML(), ilMailFormCall\getRecipients(), ilMailFormCall\getRefererRedirectUrl(), ilMailFormCall\getSignature(), ilMailMemberSearchGUI\getStoredReferer(), ilObjUser\hasToAcceptTermsOfServiceInSession(), ilAuthSession\init(), ilInitialisation\initCore(), ilHelpGUI\initHelp(), ilObjForumGUI\initSessionStorage(), ilMailFormCall\isRefererStored(), ilTestPlayerAbstractGUI\isTestSignRedirectRequired(), ilAuthFrontend\migrateAccount(), ilStartUpGUI\migrateAccount2(), ilAwarenessAct\notifyOnNewOnlineContacts(), ilMailFolderGUI\performAddSubFolder(), ilMailFolderGUI\performRenameSubFolder(), ilUserClipboard\read(), ilPersonalSettingsGUI\savePassword(), ilPersonalProfileGUI\savePersonalData(), ilHelpGUI\search(), ilMailFormCall\setContextId(), ilMailFormCall\setContextParameters(), ilMailFormCall\setRecipients(), ilUserPasswordResetRequestTargetAdjustmentCase\shouldAdjustRequest(), ilTemplate\show(), ilObjContentObjectGUI\showExportIDsOverview(), ilMailGUI\showHeader(), ilHelpGUI\showHelp(), ilHelpGUI\showPage(), ilObjContentObjectGUI\showTooltipList(), ilMailFormCall\storeReferer(), ilMailMemberSearchGUI\storeReferer(), and ilUserRequestTargetAdjustment\storeRequest().
|
static |
get closing context (for statistics)
Definition at line 443 of file class.ilSession.php.
References $closing_context.
|
static |
Returns the expiration timestamp in seconds.
boolean | If passed, the value for fixed session is returned |
Definition at line 316 of file class.ilSession.php.
References $ilSetting, ilSessionControl\DEFAULT_MAX_IDLE, and getIdleValue().
|
static |
Returns the idle time in seconds.
boolean | If passed, the value for fixed session is returned |
Definition at line 342 of file class.ilSession.php.
References $ilSetting, and ilSessionControl\DEFAULT_MAX_IDLE.
Referenced by ilAuthUtils\_initAuth(), getExpireValue(), ilObjSCORMInitData\getIliasScormVars(), ilSCORM13Player\getPlayer(), getSessionExpireValue(), and ilSessionReminder\initWithUserContext().
|
static |
Returns the session expiration value.
Definition at line 367 of file class.ilSession.php.
References getIdleValue().
Referenced by ilObjUserFolderGUI\initFormGeneralSettings(), and ilPersonalSettingsGUI\initGeneralSettingsForm().
|
static |
Definition at line 453 of file class.ilSession.php.
References $enable_web_access_without_session.
|
static |
Lookup expire time for a specific session @global ilDB $ilDB.
string | $a_session_id |
Definition at line 92 of file class.ilSession.php.
References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilAuthSession\validateExpiration().
|
static |
Set a value.
return
Definition at line 401 of file class.ilSession.php.
References $_SESSION.
Referenced by ilObjContentObjectGUI\addTooltip(), ilUserRequestTargetAdjustment\adjust(), ilObjectGUI\deleteObject(), ilMailGUI\executeCommand(), ilObjContentObjectGUI\filterHelpChapters(), ilObjContentObjectGUI\filterTooltips(), ilAwarenessGUI\getAwarenessList(), ilAwarenessGUI\getMainMenuHTML(), ilMailFormCall\getRefererRedirectUrl(), ilMailFormCall\getSignature(), ilAuthFrontend\handleAccountMigration(), ilAuthFrontend\handleAuthenticationSuccess(), ilObjUser\hasToAcceptTermsOfServiceInSession(), ilObjectGUI\hitsperpageObject(), ilInitialisation\initHTML(), ilObjForumGUI\initSessionStorage(), ilAwarenessAct\notifyOnNewOnlineContacts(), ilUserClipboard\save(), ilPersonalSettingsGUI\savePassword(), ilPersonalProfileGUI\savePersonalData(), ilHelpGUI\search(), ilAuthSession\setAuthenticated(), ilMailFormCall\setContextId(), ilMailFormCall\setContextParameters(), ilAuthSession\setExpired(), ilTemplate\setMessage(), ilMailFormCall\setRecipients(), ilTemplate\show(), ilHelpGUI\showHelp(), ilHelpGUI\showPage(), ilMailFormCall\storeReferer(), ilMailMemberSearchGUI\storeReferer(), ilUserRequestTargetAdjustment\storeRequest(), and ilMailMemberSearchGUI\unsetStoredReferer().
|
static |
set closing context (for statistics)
int | $a_context |
Definition at line 433 of file class.ilSession.php.
Referenced by ilSessionControl\checkCurrentSessionIsAllowed(), ilPersonalSettingsGUI\deleteOwnAccountLogout(), ilInitialisation\goToLogin(), ilInitialisation\goToPublicSection(), ilSoapUserAdministration\loginStudipUser(), ilSoapUserAdministration\logout(), ilCronStartUp\logout(), ilStartUpGUI\showLogin(), and ilStartUpGUI\showLogout().
|
staticprivate |
Definition at line 53 of file class.ilSession.php.
Referenced by _destroy(), and getClosingContext().
|
staticprotected |
Definition at line 58 of file class.ilSession.php.
Referenced by enableWebAccessWithoutSession(), and isWebAccessWithoutSessionEnabled().
const ilSession::SESSION_CLOSE_CAPTCHA = 12 |
Definition at line 51 of file class.ilSession.php.
Referenced by ilStartUpGUI\showLogin().
const ilSession::SESSION_CLOSE_EXPIRE = 2 |
Definition at line 41 of file class.ilSession.php.
Referenced by ilSessionStatistics\aggregateRawHelper(), ilInitialisation\goToLogin(), and ilInitialisation\goToPublicSection().
const ilSession::SESSION_CLOSE_FIRST = 3 |
Definition at line 42 of file class.ilSession.php.
Referenced by ilSessionStatistics\aggregateRawHelper(), and ilSessionControl\kickFirstRequestAbidencer().
const ilSession::SESSION_CLOSE_IDLE = 4 |
Definition at line 43 of file class.ilSession.php.
Referenced by ilSessionStatistics\aggregateRawHelper(), and ilSessionControl\kickOneMinIdleSession().
const ilSession::SESSION_CLOSE_INACTIVE = 11 |
Definition at line 50 of file class.ilSession.php.
Referenced by ilStartUpGUI\showLogin().
const ilSession::SESSION_CLOSE_IP = 9 |
Definition at line 48 of file class.ilSession.php.
Referenced by ilStartUpGUI\showLogin().
const ilSession::SESSION_CLOSE_LIMIT = 5 |
Definition at line 44 of file class.ilSession.php.
Referenced by ilSessionStatistics\aggregateRawHelper(), and ilSessionControl\checkCurrentSessionIsAllowed().
const ilSession::SESSION_CLOSE_LOGIN = 6 |
Definition at line 45 of file class.ilSession.php.
Referenced by ilSessionStatistics\aggregateRawHelper(), and ilInitialisation\goToLogin().
const ilSession::SESSION_CLOSE_PUBLIC = 7 |
Definition at line 46 of file class.ilSession.php.
Referenced by ilInitialisation\goToPublicSection().
const ilSession::SESSION_CLOSE_SIMUL = 10 |
Definition at line 49 of file class.ilSession.php.
Referenced by ilStartUpGUI\showLogin().
const ilSession::SESSION_CLOSE_TIME = 8 |
Definition at line 47 of file class.ilSession.php.
Referenced by ilStartUpGUI\showLogin().
const ilSession::SESSION_CLOSE_USER = 1 |
Definition at line 40 of file class.ilSession.php.
Referenced by ilSessionStatistics\aggregateRawHelper(), ilPersonalSettingsGUI\deleteOwnAccountLogout(), ilSoapUserAdministration\loginStudipUser(), ilSoapUserAdministration\logout(), ilCronStartUp\logout(), and ilStartUpGUI\showLogout().
const ilSession::SESSION_HANDLING_FIXED = 0 |
Definition at line 24 of file class.ilSession.php.
Referenced by ilSetupGUI\displaySessions(), ilObjUserFolderGUI\generalSettingsObject(), ilObjUserFolderGUI\initFormGeneralSettings(), and ilObjUserFolderGUI\saveGeneralSettingsObject().
const ilSession::SESSION_HANDLING_LOAD_DEPENDENT = 1 |
Definition at line 33 of file class.ilSession.php.
Referenced by ilSetupGUI\displaySessions(), ilObjUserFolderGUI\initFormGeneralSettings(), and ilObjUserFolderGUI\saveGeneralSettingsObject().