15 public function getJsonResponse($sessionIdHash)
26 $ilClientIniFile = $DIC[
'ilClientIniFile'];
28 $GLOBALS[
'DIC']->logger()->auth()->debug(
'Session reminder call for session id hash: ' . $sessionIdHash);
37 SELECT expires, user_id, data 39 WHERE MD5(session_id) = %s 48 $response[
'message'] =
'The determined session data is not unique.';
53 $response[
'message'] =
'ILIAS could not determine the session data.';
59 $response[
'message'] =
'ILIAS could not fetch the session data or the corresponding user is no more authenticated.';
67 $expiretime =
$data[
'expires'];
69 $response[
'message'] =
'The session is already expired. The client should have received a remind command before.';
73 if (null === $expiretime) {
74 $response[
'message'] =
'ILIAS could not determine the expire time from the session data.';
79 $response[
'message'] =
'The session is already expired. The client should have received a remind command before.';
88 include_once
'./Services/Authentication/classes/class.ilSessionReminder.php';
90 if ($remind_time > time()) {
92 $response[
'message'] =
'Lead time not reached, yet. Current time: ' . date(
'Y-m-d H:i:s', time()) .
', Reminder time: ' . date(
'Y-m-d H:i:s', $remind_time);
97 switch (
$ilUser->getTimeFormat()) {
109 'extend_url' =>
'./ilias.php?baseClass=ilPersonalDesktopGUI',
123 return $expiretime < time();
132 return is_array(
$data) && isset(
$data[
'user_id']) &&
$data[
'user_id'] > 0 &&
$data[
'user_id'] != ANONYMOUS_USER_ID;
static enableWebAccessWithoutSession($enable_web_access_without_session)
isAuthenticatedUsrSession($data)
static encode($mixed, $suppress_native=false)
static secondsToString($seconds, $force_with_seconds=false, $a_lng=null)
converts seconds to string: Long: 7 days 4 hour(s) ...
foreach($_POST as $key=> $value) $res
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
isSessionAlreadyExpired($expiretime)
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.