ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 return true;
257 }
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
global $DIC
Definition: saml.php:7
global $ilDB

References $closing_context, $DIC, $ilDB, ilSessionStatistics\closeRawEntry(), and ilSessionIStorage\destroySession().

Referenced by _destroyExpiredSessions(), ilSessionDBHandler\destroy(), ilSessionControl\kickFirstRequestAbidencer(), ilSessionControl\kickOneMinIdleSession(), 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 264 of file class.ilSession.php.

265 {
266 global $DIC;
267
268 $ilDB = $DIC['ilDB'];
269
270 $q = "DELETE FROM usr_session WHERE user_id = " .
271 $ilDB->quote($a_user_id, "integer");
272 $ilDB->manipulate($q);
273
274 return true;
275 }

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 280 of file class.ilSession.php.

281 {
282 global $DIC;
283
284 $ilDB = $DIC['ilDB'];
285
286 $q = "SELECT session_id,expires FROM usr_session WHERE expires < " .
287 $ilDB->quote(time(), "integer");
288 $res = $ilDB->query($q);
289 $ids = array();
290 while ($row = $ilDB->fetchAssoc($res)) {
291 $ids[$row["session_id"]] = $row["expires"];
292 }
293 if (sizeof($ids)) {
294 self::_destroy($ids, self::SESSION_CLOSE_EXPIRE, true);
295 }
296
297 return true;
298 }
static _destroy($a_session_id, $a_closing_context=null, $a_expired_at=null)
Destroy session.
$row
foreach($_POST as $key=> $value) $res

References $DIC, $ilDB, $res, $row, 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 306 of file class.ilSession.php.

307 {
308 global $DIC;
309
310 $ilDB = $DIC['ilDB'];
311
312 // Create new session id
313 $new_session = $a_session_id;
314 do {
315 $new_session = md5($new_session);
316 $q = "SELECT * FROM usr_session WHERE " .
317 "session_id = " . $ilDB->quote($new_session, "text");
318 $res = $ilDB->query($q);
319 } while ($ilDB->fetchAssoc($res));
320
321 $query = "SELECT * FROM usr_session " .
322 "WHERE session_id = " . $ilDB->quote($a_session_id, "text");
323 $res = $ilDB->query($query);
324
325 while ($row = $ilDB->fetchObject($res)) {
326 ilSession::_writeData($new_session, $row->data);
327 return $new_session;
328 }
329 return false;
330 }
static _writeData($a_session_id, $a_data)
Write session data.
$query

References $DIC, $ilDB, $query, $res, $row, 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 406 of file class.ilSession.php.

407 {
408 global $DIC;
409
410 $ilDB = $DIC['ilDB'];
411
412 $query = "SELECT DISTINCT user_id FROM usr_session"
413 . " WHERE remote_addr = " . $ilDB->quote($a_ip, "text")
414 . " AND user_id > 0";
415 $result = $ilDB->query($query);
416
417 $users = array();
418 while ($row = $ilDB->fetchObject($result)) {
419 $users[] = $row->user_id;
420 }
421 return $users;
422 }
$result
$users
Definition: authpage.php:44

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

◆ _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
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']

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 490 of file class.ilSession.php.

491 {
492 self::$enable_web_access_without_session = (bool) $enable_web_access_without_session;
493 }
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 441 of file class.ilSession.php.

442 {
443 return $_SESSION[$a_var];
444 }

References $_SESSION.

Referenced by ilCalendarAgendaListGUI\__construct(), ilMailFolderGUI\addSubFolderCommands(), ilPersonalSkillsFilterGUI\addToToolbar(), ilUserRequestTargetAdjustment\adjust(), ilPersonalSettingsGUI\allowPasswordChange(), ilObjectGUI\confirmedDeleteObject(), ilAuthProviderSaml\createNewAccount(), ilMailFolderGUI\deliverFile(), ilStartUpGUI\doMigration(), ilStartUpGUI\doMigrationNewAccount(), ilMailGUI\executeCommand(), ilTemplate\fillMessage(), ilCalendarPresentationGUI\forwardToClass(), ilCalendarViewGUI\getBucketTitle(), ilHelpMappingTableGUI\getChapters(), ilMailFormCall\getContextId(), ilMailFormCall\getContextParameters(), ilUserCertificateGUI\getCurrentSortation(), ilLanguage\getGlobalInstance(), ilAwarenessGUI\getMainMenuHTML(), ilCalendarAgendaListGUI\getPeriod(), ilMailFormCall\getRecipients(), ilMailFormCall\getRefererRedirectUrl(), ilMailFormCall\getSignature(), ilMailMemberSearchGUI\getStoredReferer(), ilAuthProviderOpenIdConnect\handleLogout(), ilObjUser\hasToAcceptTermsOfServiceInSession(), ilAuthSession\init(), ilInitialisation\initCore(), ilHelpGUI\initHelp(), ilCalendarPresentationGUI\initSeed(), ilObjForumGUI\initSessionStorage(), ilPersonalSkillsFilterGUI\isInRange(), ilMailFormCall\isRefererStored(), ilTestPlayerAbstractGUI\isTestSignRedirectRequired(), ilAuthFrontend\migrateAccount(), ilAwarenessAct\notifyOnNewOnlineContacts(), ilAuthFrontendCredentialsOpenIdConnect\parseRedirectionTarget(), ilUserClipboard\read(), ilPersonalSettingsGUI\savePassword(), ilPersonalProfileGUI\savePublicProfile(), ilHelpGUI\search(), ilMailFormCall\setContextId(), ilMailFormCall\setContextParameters(), ilMailFormCall\setRecipients(), ilUserPasswordResetRequestTargetAdjustmentCase\shouldAdjustRequest(), ilTemplate\show(), ilObjContentObjectGUI\showExportIDsOverview(), ilMailFolderGUI\showFolder(), ilMailGUI\showHeader(), ilHelpGUI\showHelp(), ilStartUpGUI\showLogout(), ilPersonalSkillsFilterGUI\showMaterialsRessources(), ilHelpGUI\showPage(), ilPersonalSkillsFilterGUI\showTargetLevel(), ilStartUpGUI\showTermsOfService(), ilObjContentObjectGUI\showTooltipList(), ilMailFormCall\storeReferer(), ilMailMemberSearchGUI\storeReferer(), and ilUserRequestTargetAdjustment\storeRequest().

+ Here is the caller graph for this function:

◆ getClosingContext()

static ilSession::getClosingContext ( )
static

get closing context (for statistics)

Returns
int

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

473 {
475 }

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 342 of file class.ilSession.php.

343 {
344 global $DIC;
345
346 if ($fixedMode) {
347 // fixed session
348 return time() + self::getIdleValue($fixedMode);
349 }
350
351 $ilSetting = $DIC['ilSetting'];
352 if ($ilSetting->get('session_handling_type', self::SESSION_HANDLING_FIXED) == self::SESSION_HANDLING_FIXED) {
353 return time() + self::getIdleValue($fixedMode);
354 } elseif ($ilSetting->get('session_handling_type', self::SESSION_HANDLING_FIXED) == self::SESSION_HANDLING_LOAD_DEPENDENT) {
355 // load dependent session settings
356 return time() + (int) ($ilSetting->get('session_max_idle', ilSessionControl::DEFAULT_MAX_IDLE) * 60);
357 }
358 }
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 370 of file class.ilSession.php.

371 {
372 global $DIC;
373
374 $ilSetting = $DIC['ilSetting'];
375 $ilClientIniFile = $DIC['ilClientIniFile'];
376
377 if ($fixedMode || $ilSetting->get('session_handling_type', self::SESSION_HANDLING_FIXED) == self::SESSION_HANDLING_FIXED) {
378 // fixed session
379 return $ilClientIniFile->readVariable('session', 'expire');
380 } elseif ($ilSetting->get('session_handling_type', self::SESSION_HANDLING_FIXED) == self::SESSION_HANDLING_LOAD_DEPENDENT) {
381 // load dependent session settings
382 return (int) ($ilSetting->get('session_max_idle', ilSessionControl::DEFAULT_MAX_IDLE) * 60);
383 }
384 }

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

Referenced by getExpireValue(), ilObjSCORMInitData\getIliasScormVars(), ilSCORM13Player\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 395 of file class.ilSession.php.

396 {
397 return self::getIdleValue(true);
398 }

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 482 of file class.ilSession.php.

483 {
485 }

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, $row, 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 430 of file class.ilSession.php.

431 {
432 $_SESSION[$a_var] = $a_val;
433 }

References $_SESSION.

Referenced by ilObjContentObjectGUI\addTooltip(), ilUserRequestTargetAdjustment\adjust(), ilUserCertificateGUI\applySortation(), ilObjectGUI\deleteObject(), ilMailFolderGUI\deliverFile(), ilAuthProviderOpenIdConnect\doAuthentication(), ilAuthProviderSoap\doAuthentication(), ilMailGUI\executeCommand(), ilObjContentObjectGUI\filterHelpChapters(), ilObjContentObjectGUI\filterTooltips(), ilCalendarPresentationGUI\forwardToClass(), ilAwarenessGUI\getAwarenessList(), ilLanguage\getGlobalInstance(), ilAwarenessGUI\getMainMenuHTML(), 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(), ilMailFormCall\setContextId(), ilMailFormCall\setContextParameters(), ilAuthSession\setExpired(), ilTemplate\setMessage(), ilMailFormCall\setRecipients(), ilTemplate\show(), ilHelpGUI\showHelp(), ilHelpGUI\showPage(), ilStartUpGUI\showTermsOfService(), ilMailFormCall\storeReferer(), ilMailMemberSearchGUI\storeReferer(), ilUserRequestTargetAdjustment\storeRequest(), and ilMailMemberSearchGUI\unsetStoredReferer().

+ Here is the caller graph for this function:

◆ setClosingContext()

static ilSession::setClosingContext (   $a_context)
static

set closing context (for statistics)

Parameters
int$a_context

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

463 {
464 self::$closing_context = (int) $a_context;
465 }

Referenced by ilSessionControl\checkCurrentSessionIsAllowed(), ilPersonalSettingsGUI\deleteOwnAccountLogout(), ilInitialisation\goToLogin(), ilInitialisation\goToPublicSection(), ilSoapUserAdministration\loginStudipUser(), ilSoapUserAdministration\logout(), ilCronStartUp\logout(), ilLTIViewGUI\logout(), ilStartUpGUI\showLogin(), and ilStartUpGUI\showLogout().

+ Here is the caller graph for this function:

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.

Referenced by ilStartUpGUI\showLogin().

◆ SESSION_CLOSE_EXPIRE

const ilSession::SESSION_CLOSE_EXPIRE = 2

◆ 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.

Referenced by ilStartUpGUI\showLogin().

◆ SESSION_CLOSE_IP

const ilSession::SESSION_CLOSE_IP = 9

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

Referenced by ilStartUpGUI\showLogin().

◆ 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.

Referenced by ilStartUpGUI\showLogin().

◆ SESSION_CLOSE_TIME

const ilSession::SESSION_CLOSE_TIME = 8

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

Referenced by ilStartUpGUI\showLogin().

◆ 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: