ILIAS  release_7 Revision v7.30-3-g800a261c036
ilSession Class Reference
+ Collaboration diagram for ilSession:

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
 

Detailed Description

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id:$

@externalTableAccess ilObjUser on usr_session

Definition at line 15 of file class.ilSession.php.

Member Function Documentation

◆ _destroy()

static ilSession::_destroy (   $a_session_id,
  $a_closing_context = null,
  $a_expired_at = null 
)
static

Destroy session.

Parameters
string|arraysession id|s
intclosing context
int|boolexpired at timestamp

Definition at line 227 of file class.ilSession.php.

228 {
229 global $DIC;
230
231 $ilDB = $DIC['ilDB'];
232
233 if (!$a_closing_context) {
234 $a_closing_context = self::$closing_context;
235 }
236
237 ilSessionStatistics::closeRawEntry($a_session_id, $a_closing_context, $a_expired_at);
238
239
240 if (!is_array($a_session_id)) {
241 $q = "DELETE FROM usr_session WHERE session_id = " .
242 $ilDB->quote($a_session_id, "text");
243 } else {
244 // array: id => timestamp - so we get rid of timestamps
245 if ($a_expired_at) {
246 $a_session_id = array_keys($a_session_id);
247 }
248 $q = "DELETE FROM usr_session WHERE " .
249 $ilDB->in("session_id", $a_session_id, "", "text");
250 }
251
253
254 $ilDB->manipulate($q);
255
256 try {
257 // only delete session cookie if it is set in the current request
258 if (isset($_COOKIE[session_name()]) && $_COOKIE[session_name()] === $a_session_id) {
259 \ilUtil::setCookie(session_name(), '', false, true);
260 }
261 } catch (\Throwable $e) {
262 // ignore
263 // this is needed for "header already" sent errors when the random cleanup of expired sessions is triggered
264 }
265
266 return true;
267 }
static destroySession($a_session_id)
Destroy session(s).
static closeRawEntry($a_session_id, $a_context=null, $a_expired_at=null)
Close raw data entry.
static $closing_context
static setCookie($a_cookie_name, $a_cookie_value='', $a_also_set_super_global=true, $a_set_cookie_invalid=false)
global $DIC
Definition: goto.php:24
global $ilDB
$_COOKIE[session_name()]
Definition: xapitoken.php:37

References $_COOKIE, $closing_context, $DIC, Vendor\Package\$e, $ilDB, ilSessionStatistics\closeRawEntry(), ilSessionIStorage\destroySession(), and ilUtil\setCookie().

Referenced by _destroyExpiredSessions(), ilSessionDBHandler\destroy(), ilSessionControl\kickFirstRequestAbidencer(), ilSessionControl\kickOneMinIdleSession(), ilInitialisation\resumeUserSession(), and ilSessionTest\testBasicSessionBehaviour().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _destroyByUserId()

static ilSession::_destroyByUserId (   $a_user_id)
static

Destroy session.

Parameters
stringsession id

Definition at line 274 of file class.ilSession.php.

275 {
276 global $DIC;
277
278 $ilDB = $DIC['ilDB'];
279
280 $q = "DELETE FROM usr_session WHERE user_id = " .
281 $ilDB->quote($a_user_id, "integer");
282 $ilDB->manipulate($q);
283
284 return true;
285 }

References $DIC, and $ilDB.

Referenced by ilObjUser\delete(), and ilSessionTest\testBasicSessionBehaviour().

+ Here is the caller graph for this function:

◆ _destroyExpiredSessions()

static ilSession::_destroyExpiredSessions ( )
static

Destroy expired sessions.

Definition at line 290 of file class.ilSession.php.

291 {
292 global $DIC;
293
294 $ilDB = $DIC['ilDB'];
295
296 $q = "SELECT session_id,expires FROM usr_session WHERE expires < " .
297 $ilDB->quote(time(), "integer");
298 $res = $ilDB->query($q);
299 $ids = array();
300 while ($row = $ilDB->fetchAssoc($res)) {
301 $ids[$row["session_id"]] = $row["expires"];
302 }
303 if (sizeof($ids)) {
304 self::_destroy($ids, self::SESSION_CLOSE_EXPIRE, true);
305 }
306
307 return true;
308 }
static _destroy($a_session_id, $a_closing_context=null, $a_expired_at=null)
Destroy session.
foreach($_POST as $key=> $value) $res

References $DIC, $ilDB, $res, and _destroy().

Referenced by _writeData(), ilSessionStatisticsGUI\adminSync(), ilSessionDBHandler\gc(), and ilSessionTest\testBasicSessionBehaviour().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _duplicate()

static ilSession::_duplicate (   $a_session_id)
static

Duplicate session.

Parameters
stringsession id
Returns
string new session id

Definition at line 316 of file class.ilSession.php.

317 {
318 global $DIC;
319
320 $ilDB = $DIC['ilDB'];
321
322 // Create new session id
323 $new_session = $a_session_id;
324 do {
325 $new_session = md5($new_session);
326 $q = "SELECT * FROM usr_session WHERE " .
327 "session_id = " . $ilDB->quote($new_session, "text");
328 $res = $ilDB->query($q);
329 } while ($ilDB->fetchAssoc($res));
330
331 $query = "SELECT * FROM usr_session " .
332 "WHERE session_id = " . $ilDB->quote($a_session_id, "text");
333 $res = $ilDB->query($query);
334
335 while ($row = $ilDB->fetchObject($res)) {
336 ilSession::_writeData($new_session, $row->data);
337 return $new_session;
338 }
339 return false;
340 }
static _writeData($a_session_id, $a_data)
Write session data.
$query

References $DIC, $ilDB, $query, $res, and _writeData().

Referenced by ilContainer\cloneAllObject(), ilDclContentExporter\exportAsync(), ilECSTaskScheduler\initNextExecution(), and ilSessionTest\testBasicSessionBehaviour().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _exists()

static ilSession::_exists (   $a_session_id)
static

Check whether session exists.

Parameters
stringsession id
Returns
boolean true, if session id exists

Definition at line 205 of file class.ilSession.php.

206 {
207 if (!$a_session_id) {
208 return false;
209 }
210 global $DIC;
211
212 $ilDB = $DIC['ilDB'];
213
214 $q = "SELECT 1 FROM usr_session WHERE session_id = " . $ilDB->quote($a_session_id, "text");
215 $set = $ilDB->query($q);
216
217 return $ilDB->numRows($set) > 0;
218 }

References $DIC, and $ilDB.

Referenced by _writeData(), ilInitialisation\setSessionHandler(), and ilSessionTest\testBasicSessionBehaviour().

+ Here is the caller graph for this function:

◆ _getData()

static ilSession::_getData (   $a_session_id)
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.

Parameters
stringsession id
Returns
string session data

Definition at line 69 of file class.ilSession.php.

70 {
71 if (!$a_session_id) {
72 // fix for php #70520
73 return '';
74 }
75 global $DIC;
76
77 $ilDB = $DIC['ilDB'];
78
79 $q = "SELECT data FROM usr_session WHERE session_id = " .
80 $ilDB->quote($a_session_id, "text");
81 $set = $ilDB->query($q);
82 $rec = $ilDB->fetchAssoc($set);
83
84 // fix for php #70520
85 return (string) $rec["data"];
86 }

References $DIC, and $ilDB.

Referenced by ilSessionDBHandler\read(), and ilSessionTest\testBasicSessionBehaviour().

+ Here is the caller graph for this function:

◆ _getUsersWithIp()

static ilSession::_getUsersWithIp (   $a_ip)
static

Get the active users with a specific remote ip address.

Parameters
stringip address
Returns
array list of active user id

Definition at line 416 of file class.ilSession.php.

417 {
418 global $DIC;
419
420 $ilDB = $DIC['ilDB'];
421
422 $query = "SELECT DISTINCT user_id FROM usr_session"
423 . " WHERE remote_addr = " . $ilDB->quote($a_ip, "text")
424 . " AND user_id > 0";
425 $result = $ilDB->query($query);
426
427 $users = array();
428 while ($row = $ilDB->fetchObject($result)) {
429 $users[] = $row->user_id;
430 }
431 return $users;
432 }
$result

References $DIC, $ilDB, $query, and $result.

◆ _writeData()

static ilSession::_writeData (   $a_session_id,
  $a_data 
)
static

Write session data.

Parameters
stringsession id
stringsession data

Definition at line 116 of file class.ilSession.php.

117 {
118 global $DIC;
119
120 $ilDB = $DIC['ilDB'];
121 $ilClientIniFile = $DIC['ilClientIniFile'];
122
123 if (self::isWebAccessWithoutSessionEnabled()) {
124 // Prevent session data written for web access checker
125 // when no cookie was sent (e.g. for pdf files linking others).
126 // This would result in new session records for each request.
127 return true;
128 }
129
130 if (!$a_session_id) {
131 return true;
132 }
133
134 $now = time();
135
136 // prepare session data
137 $fields = array(
138 "user_id" => array("integer", (int) $_SESSION['_authsession_user_id']),
139 "expires" => array("integer", self::getExpireValue()),
140 "data" => array("clob", $a_data),
141 "ctime" => array("integer", $now),
142 "type" => array("integer", (int) $_SESSION["SessionType"])
143 );
144 if ($ilClientIniFile->readVariable("session", "save_ip")) {
145 $fields["remote_addr"] = array("text", $_SERVER["REMOTE_ADDR"]);
146 }
147
148 if (ilSession::_exists($a_session_id)) {
149 // note that we do this only when inserting the new record
150 // updating may get us other contexts for the same session, especially ilContextWAC, which we do not want
151 if (class_exists("ilContext")) {
153 $fields["context"] = array("text", ilContext::getType());
154 }
155 }
156
157 $ilDB->update(
158 "usr_session",
159 $fields,
160 array("session_id" => array("text", $a_session_id))
161 );
162 } else {
163 $fields["session_id"] = array("text", $a_session_id);
164 $fields["createtime"] = array("integer", $now);
165
166 // note that we do this only when inserting the new record
167 // updating may get us other contexts for the same session, especially ilContextWAC, which we do not want
168 if (class_exists("ilContext")) {
169 $fields["context"] = array("text", ilContext::getType());
170 }
171
172 $ilDB->insert("usr_session", $fields);
173
174 // check type against session control
175 $type = $fields["type"][1];
178 $fields["session_id"][1],
179 $type,
180 $fields["createtime"][1],
181 $fields["user_id"][1]
182 );
183 }
184 }
185
186 // finally delete deprecated sessions
187 $random = new \ilRandom();
188 if ($random->int(0, 50) == 2) {
189 // get time _before_ destroying expired sessions
192 }
193
194 return true;
195 }
$_SESSION["AccountId"]
static isSessionMainContext()
Context that are not only temporary in a session (e.g.
static getType()
Get context type.
static createRawEntry($a_session_id, $a_session_type, $a_timestamp, $a_user_id)
Create raw data entry.
static aggretateRaw($a_now)
Aggregate raw session data (older than given time)
static _exists($a_session_id)
Check whether session exists.
static _destroyExpiredSessions()
Destroy expired sessions.
$type
$_SERVER['HTTP_HOST']
Definition: raiseError.php:10

References $_SERVER, $_SESSION, $DIC, $ilDB, ilSessionControl\$session_types_controlled, $type, _destroyExpiredSessions(), _exists(), ilSessionStatistics\aggretateRaw(), ilSessionStatistics\createRawEntry(), ilContext\getType(), and ilContext\isSessionMainContext().

Referenced by _duplicate(), ilSessionTest\testBasicSessionBehaviour(), and ilSessionDBHandler\write().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clear()

◆ enableWebAccessWithoutSession()

static ilSession::enableWebAccessWithoutSession (   $enable_web_access_without_session)
static
Parameters
boolean$enable_web_access_without_session

Definition at line 500 of file class.ilSession.php.

501 {
502 self::$enable_web_access_without_session = (bool) $enable_web_access_without_session;
503 }
static $enable_web_access_without_session

References $enable_web_access_without_session.

Referenced by ilWebDAVAuthentication\authenticate(), ilNotificationGUI\getOSDNotificationsObject(), ilOnScreenChatGUI\getUserProfileData(), ilNotificationGUI\removeOSDNotificationsObject(), and ilOnScreenChatGUI\verifyLogin().

+ Here is the caller graph for this function:

◆ get()

static ilSession::get (   $a_var)
static

Get a value.

Parameters

return

Definition at line 451 of file class.ilSession.php.

452 {
453 return $_SESSION[$a_var];
454 }

References $_SESSION.

Referenced by ilPersonalSkillsFilterGUI\addToToolbar(), ilPersonalSettingsGUI\allowPasswordChange(), ilPersonalProfileGUI\cancelWithdrawal(), ilObjForumGUI\checkUsersViewMode(), 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(), ilMemberViewSettings\read(), ilUserClipboard\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().

+ Here is the caller graph for this function:

◆ getClosingContext()

static ilSession::getClosingContext ( )
static

get closing context (for statistics)

Returns
int

Definition at line 482 of file class.ilSession.php.

483 {
485 }

References $closing_context.

◆ getExpireValue()

static ilSession::getExpireValue (   $fixedMode = false)
static

Returns the expiration timestamp in seconds.

Parameters
booleanIf passed, the value for fixed session is returned
Returns
integer The expiration timestamp in seconds @access public

Definition at line 352 of file class.ilSession.php.

353 {
354 global $DIC;
355
356 if ($fixedMode) {
357 // fixed session
358 return time() + self::getIdleValue($fixedMode);
359 }
360
361 $ilSetting = $DIC['ilSetting'];
362 if ($ilSetting->get('session_handling_type', self::SESSION_HANDLING_FIXED) == self::SESSION_HANDLING_FIXED) {
363 return time() + self::getIdleValue($fixedMode);
364 } elseif ($ilSetting->get('session_handling_type', self::SESSION_HANDLING_FIXED) == self::SESSION_HANDLING_LOAD_DEPENDENT) {
365 // load dependent session settings
366 return time() + (int) ($ilSetting->get('session_max_idle', ilSessionControl::DEFAULT_MAX_IDLE) * 60);
367 }
368 }
static getIdleValue($fixedMode=false)
Returns the idle time in seconds.
global $ilSetting
Definition: privfeed.php:17

References $DIC, $ilSetting, ilSessionControl\DEFAULT_MAX_IDLE, and getIdleValue().

+ Here is the call graph for this function:

◆ getIdleValue()

static ilSession::getIdleValue (   $fixedMode = false)
static

Returns the idle time in seconds.

Parameters
booleanIf passed, the value for fixed session is returned
Returns
integer The idle time in seconds @access public

Definition at line 380 of file class.ilSession.php.

381 {
382 global $DIC;
383
384 $ilSetting = $DIC['ilSetting'];
385 $ilClientIniFile = $DIC['ilClientIniFile'];
386
387 if ($fixedMode || $ilSetting->get('session_handling_type', self::SESSION_HANDLING_FIXED) == self::SESSION_HANDLING_FIXED) {
388 // fixed session
389 return $ilClientIniFile->readVariable('session', 'expire');
390 } elseif ($ilSetting->get('session_handling_type', self::SESSION_HANDLING_FIXED) == self::SESSION_HANDLING_LOAD_DEPENDENT) {
391 // load dependent session settings
392 return (int) ($ilSetting->get('session_max_idle', ilSessionControl::DEFAULT_MAX_IDLE) * 60);
393 }
394 }

References $DIC, $ilSetting, and ilSessionControl\DEFAULT_MAX_IDLE.

Referenced by getExpireValue(), ilObjSCORMInitData\getIliasScormVars(), ilSCORM13PlayerGUI\getPlayer(), getSessionExpireValue(), and ilSessionReminder\initWithUserContext().

+ Here is the caller graph for this function:

◆ getSessionExpireValue()

static ilSession::getSessionExpireValue ( )
static

Returns the session expiration value.

Returns
integer The expiration value in seconds @access public

Definition at line 405 of file class.ilSession.php.

406 {
407 return self::getIdleValue(true);
408 }

References getIdleValue().

Referenced by ilObjUserFolderGUI\initFormGeneralSettings(), and ilPersonalSettingsGUI\initGeneralSettingsForm().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isWebAccessWithoutSessionEnabled()

static ilSession::isWebAccessWithoutSessionEnabled ( )
static
Returns
boolean

Definition at line 492 of file class.ilSession.php.

493 {
495 }

References $enable_web_access_without_session.

◆ lookupExpireTime()

static ilSession::lookupExpireTime (   $a_session_id)
static

Lookup expire time for a specific session @global ilDB $ilDB.

Parameters
string$a_session_id
Returns
int expired unix timestamp

Definition at line 94 of file class.ilSession.php.

95 {
96 global $DIC;
97
98 $ilDB = $DIC['ilDB'];
99
100 $query = 'SELECT expires FROM usr_session WHERE session_id = ' .
101 $ilDB->quote($a_session_id, 'text');
102 $res = $ilDB->query($query);
103 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
104 return (int) $row->expires;
105 }
106 return 0;
107 }

References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.

Referenced by ilAuthSession\validateExpiration().

+ Here is the caller graph for this function:

◆ set()

static ilSession::set (   $a_var,
  $a_val 
)
static

Set a value.

Parameters

return

Definition at line 440 of file class.ilSession.php.

441 {
442 $_SESSION[$a_var] = $a_val;
443 }

References $_SESSION.

Referenced by ilObjContentObjectGUI\addTooltip(), ilObjUser\addToPCClipboard(), ilUserCertificateGUI\applySortation(), ilPersonalProfileGUI\cancelWithdrawal(), ilObjForumGUI\checkUsersViewMode(), ilObjectGUI\deleteObject(), ilMailFolderGUI\deliverFile(), ILIAS\Init\StartupSequence\StartUpSequenceDispatcher\dispatch(), ilAuthProviderOpenIdConnect\doAuthentication(), ilAuthProviderSoap\doAuthentication(), ilMailGUI\executeCommand(), ilObjContentObjectGUI\filterHelpChapters(), ilObjContentObjectGUI\filterTooltips(), ilAwarenessGUI\getAwarenessList(), ilLanguage\getGlobalInstance(), ilAwarenessGUI\getMainMenuHTML(), ilAwarenessMetaBarProvider\getMetaBarItems(), ilMailFormCall\getRefererRedirectUrl(), ilMailFormCall\getSignature(), 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(), ilMailMemberSearchGUI\storeReferer(), ilMailFormCall\storeReferer(), ILIAS\Init\StartupSequence\StartUpSequenceDispatcher\storeRequest(), ilDashboardGUI\toggleHelp(), and ilMailMemberSearchGUI\unsetStoredReferer().

+ Here is the caller graph for this function:

◆ setClosingContext()

static ilSession::setClosingContext (   $a_context)
static

Field Documentation

◆ $closing_context

ilSession::$closing_context = null
staticprivate

Definition at line 53 of file class.ilSession.php.

Referenced by _destroy(), and getClosingContext().

◆ $enable_web_access_without_session

ilSession::$enable_web_access_without_session = false
staticprotected

◆ SESSION_CLOSE_CAPTCHA

const ilSession::SESSION_CLOSE_CAPTCHA = 12

Definition at line 51 of file class.ilSession.php.

◆ SESSION_CLOSE_EXPIRE

◆ SESSION_CLOSE_FIRST

const ilSession::SESSION_CLOSE_FIRST = 3

◆ SESSION_CLOSE_IDLE

const ilSession::SESSION_CLOSE_IDLE = 4

◆ SESSION_CLOSE_INACTIVE

const ilSession::SESSION_CLOSE_INACTIVE = 11

Definition at line 50 of file class.ilSession.php.

◆ SESSION_CLOSE_IP

const ilSession::SESSION_CLOSE_IP = 9

Definition at line 48 of file class.ilSession.php.

◆ SESSION_CLOSE_LIMIT

const ilSession::SESSION_CLOSE_LIMIT = 5

◆ SESSION_CLOSE_LOGIN

const ilSession::SESSION_CLOSE_LOGIN = 6

◆ SESSION_CLOSE_PUBLIC

const ilSession::SESSION_CLOSE_PUBLIC = 7

Definition at line 46 of file class.ilSession.php.

Referenced by ilInitialisation\goToPublicSection().

◆ SESSION_CLOSE_SIMUL

const ilSession::SESSION_CLOSE_SIMUL = 10

Definition at line 49 of file class.ilSession.php.

◆ SESSION_CLOSE_TIME

const ilSession::SESSION_CLOSE_TIME = 8

Definition at line 47 of file class.ilSession.php.

◆ SESSION_CLOSE_USER

◆ SESSION_HANDLING_FIXED

◆ SESSION_HANDLING_LOAD_DEPENDENT

const ilSession::SESSION_HANDLING_LOAD_DEPENDENT = 1

The documentation for this class was generated from the following file: