ILIAS
release_7 Revision v7.30-3-g800a261c036
|
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 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 |
|
static |
Destroy session.
string|array | session id|s |
int | closing context |
int|bool | expired at timestamp |
Definition at line 227 of file class.ilSession.php.
References $_COOKIE, $DIC, Vendor\Package\$e, $ilDB, ilSessionStatistics\closeRawEntry(), ilSessionIStorage\destroySession(), and ilUtil\setCookie().
Referenced by ilSessionDBHandler\destroy(), ilSessionControl\kickFirstRequestAbidencer(), ilSessionControl\kickOneMinIdleSession(), ilInitialisation\resumeUserSession(), and ilSessionTest\testBasicSessionBehaviour().
|
static |
Destroy session.
string | session id |
Definition at line 274 of file class.ilSession.php.
Referenced by ilObjUser\delete(), and ilSessionTest\testBasicSessionBehaviour().
|
static |
Destroy expired sessions.
Definition at line 290 of file class.ilSession.php.
References $DIC, $ilDB, and $res.
Referenced by ilSessionStatisticsGUI\adminSync(), ilSessionDBHandler\gc(), and ilSessionTest\testBasicSessionBehaviour().
|
static |
Duplicate session.
string | session id |
Definition at line 316 of file class.ilSession.php.
References $DIC, $ilDB, $query, $res, and _writeData().
Referenced by ilContainer\cloneAllObject(), ilDclContentExporter\exportAsync(), ilECSTaskScheduler\initNextExecution(), and ilSessionTest\testBasicSessionBehaviour().
|
static |
Check whether session exists.
string | session id |
Definition at line 205 of file class.ilSession.php.
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.
Referenced by ilSessionDBHandler\read(), and ilSessionTest\testBasicSessionBehaviour().
|
static |
|
static |
Write session data.
string | session id |
string | session data |
Definition at line 116 of file class.ilSession.php.
References $_SERVER, $_SESSION, $DIC, $ilDB, ilSessionControl\$session_types_controlled, $type, _exists(), ilSessionStatistics\aggretateRaw(), ilSessionStatistics\createRawEntry(), ilContext\getType(), and ilContext\isSessionMainContext().
Referenced by _duplicate(), ilSessionTest\testBasicSessionBehaviour(), and ilSessionDBHandler\write().
|
static |
Unset a value.
Definition at line 462 of file class.ilSession.php.
References $_SESSION.
Referenced by ilLMObjectGUI\cancelDelete(), ilSCORM2004ScoGUI\cancelDeleteExportFile(), ilObjSCORM2004LearningModuleGUI\cancelDeleteExportFile(), ilObjSurveyQuestionPoolGUI\cancelDeleteExportFileObject(), ilObjectGUI\cancelDeleteObject(), ilObjUserGUI\cancelObject(), ilObjectGUI\cancelObject(), ilObjectGUI\checkPermission(), ilPersonalSkillsFilterGUI\clear(), ilObjectGUI\confirmedDeleteObject(), ilMemberViewSettings\deactivate(), ilRepUtil\deleteObjects(), ilUtil\infoPanel(), and ilHelpGUI\resetCurrentPage().
|
static |
boolean | $enable_web_access_without_session |
Definition at line 500 of file class.ilSession.php.
References $enable_web_access_without_session.
Referenced by ilWebDAVAuthentication\authenticate(), ilNotificationGUI\getOSDNotificationsObject(), ilOnScreenChatGUI\getUserProfileData(), ilNotificationGUI\removeOSDNotificationsObject(), and ilOnScreenChatGUI\verifyLogin().
|
static |
Get a value.
Definition at line 451 of file class.ilSession.php.
References $_SESSION.
Referenced by ilPersonalSkillsFilterGUI\addToToolbar(), ilPersonalSettingsGUI\allowPasswordChange(), ilPersonalProfileGUI\cancelWithdrawal(), ilObjForumGUI\checkUsersViewMode(), ilMailFolderGUI\confirmDeleteMails(), ilObjectGUI\confirmedDeleteObject(), ilAuthProviderSaml\createNewAccount(), ilMailFolderGUI\deliverFile(), ILIAS\Init\StartupSequence\StartUpSequenceDispatcher\dispatch(), ilStartUpGUI\doLogout(), ilStartUpGUI\doMigration(), ilStartUpGUI\doMigrationNewAccount(), ilMailGUI\executeCommand(), ilHelpMappingTableGUI\getChapters(), ilMailFormCall\getContextId(), ilMailFormCall\getContextParameters(), ilUserCertificateGUI\getCurrentSortation(), ilLanguage\getGlobalInstance(), ilAwarenessGUI\getMainMenuHTML(), ilAwarenessMetaBarProvider\getMetaBarItems(), ilObjUser\getPCClipboardContent(), ilMailFormCall\getRecipients(), ilMailFormCall\getRefererRedirectUrl(), ilMailFormCall\getSignature(), ilMailMemberSearchGUI\getStoredReferer(), ilAuthProviderOpenIdConnect\handleLogout(), ilObjUser\hasToAcceptTermsOfServiceInSession(), ilAuthSession\init(), ilHelpGUI\initHelp(), ilCalendarPresentationGUI\initSeed(), ilObjForumGUI\initSessionStorage(), ilHelpGUI\isHelpPageActive(), ilPersonalSkillsFilterGUI\isInRange(), ilTestSession\isPasswordChecked(), ilMailFormCall\isRefererStored(), ilTestPlayerAbstractGUI\isTestSignRedirectRequired(), ilAuthFrontend\migrateAccount(), ilAwarenessAct\notifyOnNewOnlineContacts(), ilAuthFrontendCredentialsOpenIdConnect\parseRedirectionTarget(), ilUserClipboard\read(), ilMemberViewSettings\read(), ilStartUpGUI\retrieveMessagesFromSession(), ilPersonalSettingsGUI\savePassword(), ilPersonalProfileGUI\savePublicProfile(), ilHelpGUI\search(), ilMailFormGUI\searchUsers(), ilMailFormCall\setContextId(), ilMailFormCall\setContextParameters(), ilMailFormCall\setRecipients(), ilForcedUserPasswordChangeStartUpStep\shouldInterceptRequest(), ilObjContentObjectGUI\showExportIDsOverview(), ilHelpGUI\showHelp(), ilPersonalSkillsFilterGUI\showMaterialsRessources(), ilHelpGUI\showPage(), ilPersonalSkillsFilterGUI\showTargetLevel(), ilStartUpGUI\showTermsOfService(), ilObjContentObjectGUI\showTooltipList(), ilMailMemberSearchGUI\storeReferer(), ilMailFormCall\storeReferer(), ILIAS\Init\StartupSequence\StartUpSequenceDispatcher\storeRequest(), and ilDashboardGUI\toggleHelp().
|
static |
|
static |
Returns the expiration timestamp in seconds.
boolean | If passed, the value for fixed session is returned |
Definition at line 352 of file class.ilSession.php.
References $DIC, $ilSetting, and ilSessionControl\DEFAULT_MAX_IDLE.
|
static |
Returns the idle time in seconds.
boolean | If passed, the value for fixed session is returned |
Definition at line 380 of file class.ilSession.php.
References $DIC, $ilSetting, and ilSessionControl\DEFAULT_MAX_IDLE.
Referenced by ilObjSCORMInitData\getIliasScormVars(), ilSCORM13PlayerGUI\getPlayer(), and ilSessionReminder\initWithUserContext().
|
static |
Returns the session expiration value.
Definition at line 405 of file class.ilSession.php.
Referenced by ilObjUserFolderGUI\initFormGeneralSettings(), and ilPersonalSettingsGUI\initGeneralSettingsForm().
|
static |
Definition at line 492 of file class.ilSession.php.
|
static |
Lookup expire time for a specific session ilDB $ilDB.
string | $a_session_id |
Definition at line 94 of file class.ilSession.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilAuthSession\validateExpiration().
|
static |
Set a value.
Definition at line 440 of file class.ilSession.php.
References $_SESSION.
Referenced by ilObjContentObjectGUI\addTooltip(), ilObjUser\addToPCClipboard(), ilUserCertificateGUI\applySortation(), ilPersonalProfileGUI\cancelWithdrawal(), ilObjForumGUI\checkUsersViewMode(), ilMailFolderGUI\confirmDeleteMails(), ilObjectGUI\deleteObject(), ilMailFolderGUI\deliverFile(), ILIAS\Init\StartupSequence\StartUpSequenceDispatcher\dispatch(), ilAuthProviderOpenIdConnect\doAuthentication(), ilAuthProviderSoap\doAuthentication(), ilTestSignatureGUI\executeCommand(), ilMailGUI\executeCommand(), ilObjContentObjectGUI\filterHelpChapters(), ilObjContentObjectGUI\filterTooltips(), ilAwarenessGUI\getAwarenessList(), ilLanguage\getGlobalInstance(), ilAwarenessGUI\getMainMenuHTML(), ilAwarenessMetaBarProvider\getMetaBarItems(), ilMailFormCall\getRefererRedirectUrl(), ilMailFormCall\getSignature(), ilTestSignatureGUI\getTestOutputGUI(), ilAuthFrontend\handleAccountMigration(), ilAuthFrontend\handleAuthenticationSuccess(), ilAuthProviderOpenIdConnect\handleLogout(), ilAuthProviderSaml\handleSamlAuth(), ilAuthProviderOpenIdConnect\handleUpdate(), ilObjUser\hasToAcceptTermsOfServiceInSession(), ilObjectGUI\hitsperpageObject(), ilInitialisation\initHTML(), ilCalendarPresentationGUI\initSeed(), ilObjForumGUI\initSessionStorage(), ilSimpleSAMLphpWrapper\logout(), ilAwarenessAct\notifyOnNewOnlineContacts(), ilAuthFrontendCredentialsOpenIdConnect\parseRedirectionTarget(), ilPersonalSkillsFilterGUI\save(), ilUserClipboard\save(), ilPersonalSettingsGUI\savePassword(), ilPersonalProfileGUI\savePublicProfile(), ilHelpGUI\search(), ilAuthSession\setAuthenticated(), ilMemberViewSettings\setContainer(), ilMailFormCall\setContextId(), ilMailFormCall\setContextParameters(), ilAuthSession\setExpired(), ilTestSession\setPasswordChecked(), ilMailFormCall\setRecipients(), ilHelpGUI\showHelp(), ilHelpGUI\showPage(), ilStartUpGUI\showTermsOfService(), ilMailFormCall\storeReferer(), ilMailMemberSearchGUI\storeReferer(), ILIAS\Init\StartupSequence\StartUpSequenceDispatcher\storeRequest(), ilDashboardGUI\toggleHelp(), and ilMailMemberSearchGUI\unsetStoredReferer().
|
static |
set closing context (for statistics)
int | $a_context |
Definition at line 472 of file class.ilSession.php.
Referenced by ilSessionControl\checkCurrentSessionIsAllowed(), ilPersonalSettingsGUI\deleteOwnAccountLogout(), ilStartUpGUI\doLogout(), ilPersonalProfileGUI\goToEmailConfirmation(), ilInitialisation\goToLogin(), ilInitialisation\goToPublicSection(), ilStartUpGUI\jumpToPasswordAssistance(), ilSoapUserAdministration\loginStudipUser(), ilCronStartUp\logout(), ilSoapUserAdministration\logout(), and ilPersonalProfileGUI\withdrawAcceptance().
|
staticprivate |
Definition at line 53 of file class.ilSession.php.
|
staticprotected |
Definition at line 58 of file class.ilSession.php.
Referenced by enableWebAccessWithoutSession().
const ilSession::SESSION_CLOSE_CAPTCHA = 12 |
Definition at line 51 of file class.ilSession.php.
const ilSession::SESSION_CLOSE_EXPIRE = 2 |
Definition at line 41 of file class.ilSession.php.
Referenced by ilSessionStatistics\aggregateRawHelper(), ilInitialisation\goToLogin(), ilInitialisation\goToPublicSection(), and ilInitialisation\resumeUserSession().
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.
const ilSession::SESSION_CLOSE_IP = 9 |
Definition at line 48 of file class.ilSession.php.
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.
const ilSession::SESSION_CLOSE_TIME = 8 |
Definition at line 47 of file class.ilSession.php.
const ilSession::SESSION_CLOSE_USER = 1 |
Definition at line 40 of file class.ilSession.php.
Referenced by ilSessionStatistics\aggregateRawHelper(), ilPersonalSettingsGUI\deleteOwnAccountLogout(), ilStartUpGUI\doLogout(), ilPersonalProfileGUI\goToEmailConfirmation(), ilStartUpGUI\jumpToPasswordAssistance(), ilSoapUserAdministration\loginStudipUser(), ilCronStartUp\logout(), ilSoapUserAdministration\logout(), and ilPersonalProfileGUI\withdrawAcceptance().
const ilSession::SESSION_HANDLING_FIXED = 0 |
Definition at line 24 of file class.ilSession.php.
Referenced by ilObjUserFolderGUI\generalSettingsObject(), ilObjUserFolderGUI\initFormGeneralSettings(), ilSessionReminder\isActive(), and ilObjUserFolderGUI\saveGeneralSettingsObject().
const ilSession::SESSION_HANDLING_LOAD_DEPENDENT = 1 |
Definition at line 33 of file class.ilSession.php.
Referenced by ilObjUserFolderGUI\initFormGeneralSettings(), and ilObjUserFolderGUI\saveGeneralSettingsObject().