5 ini_set(
"soap.wsdl_cache_enabled",
"0");
25 if (isset(
$_GET[
'return']) && isset(
$_GET[
'action']) &&
$_GET[
'action'] ==
'logout') {
28 require_once
"include/inc.header.php";
32 $GLOBALS[
'DIC'][
'ilAuthSession']->logout();
48 include_once
"Services/Context/classes/class.ilContext.php";
52 require_once(
"Services/Init/classes/class.ilInitialisation.php");
56 $server =
new SoapServer(
'https://' .
$_SERVER[
'HTTP_HOST'] .
$_SERVER[
'SCRIPT_NAME'] .
'/LogoutNotification.wsdl');
57 $server->addFunction(
"LogoutNotification");
70 header(
'Content-Type: text/xml');
72 $url = filter_var(
"https://{$_SERVER['HTTP_HOST']}/shib_logout.php", FILTER_SANITIZE_URL);
75 <?xml version =
"1.0" encoding =
"UTF-8" ?>
76 <definitions name=
"LogoutNotification" 77 targetNamespace=
"urn:mace:shibboleth:2.0:sp:notify" 78 xmlns:notify=
"urn:mace:shibboleth:2.0:sp:notify" 79 xmlns:soap=
"http://schemas.xmlsoap.org/wsdl/soap/" 80 xmlns=
"http://schemas.xmlsoap.org/wsdl/">
83 <schema targetNamespace=
"urn:mace:shibboleth:2.0:sp:notify" 84 xmlns=
"http://www.w3.org/2000/10/XMLSchema" 85 xmlns:notify=
"urn:mace:shibboleth:2.0:sp:notify">
87 <simpleType name=
"string">
88 <restriction
base=
"string">
89 <minLength value=
"1"/>
93 <element name=
"OK" type=
"notify:OKType"/>
94 <complexType name=
"OKType">
101 <message name=
"getLogoutNotificationRequest">
102 <part name=
"SessionID" type=
"notify:string" />
105 <message name=
"getLogoutNotificationResponse" >
109 <portType name=
"LogoutNotificationPortType">
110 <operation name=
"LogoutNotification">
111 <
input message=
"getLogoutNotificationRequest"/>
112 <output message=
"getLogoutNotificationResponse"/>
116 <binding name=
"LogoutNotificationBinding" type=
"notify:LogoutNotificationPortType">
117 <soap:binding
style=
"rpc" transport=
"http://schemas.xmlsoap.org/soap/http"/>
118 <operation name=
"LogoutNotification">
119 <soap:operation soapAction=
"urn:xmethods-logout-notification#LogoutNotification"/>
123 <service name=
"LogoutNotificationService">
124 <port name=
"LogoutNotificationPort" binding=
"notify:LogoutNotificationBinding">
125 <soap:address location=
"{$url}"/>
135 function LogoutNotification($SessionID) {
145 $q =
"SELECT session_id, data FROM usr_session WHERE expires > 'NOW()'";
146 $r = $ilDB->query($q);
154 foreach ($user_session as $user_session_entry) {
155 if (is_array($user_session_entry)
156 && array_key_exists(
'shibboleth_session_id', $user_session_entry)
157 && $user_session_entry[
'shibboleth_session_id'] == $SessionID
162 return new SoapFault(
'LogoutError',
'Could not delete session entry in database.');
173 $variables =
array();
174 $a = preg_split(
"/(\w+)\|/", $serialized_string, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
175 for ($i = 0; $i < count($a); $i = $i + 2) {
176 $variables[$a[$i]] = unserialize($a[$i + 1]);
static _destroy($a_session_id, $a_closing_context=null, $a_expired_at=null)
Destroy session.
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
global $HTTP_RAW_POST_DATA
static initILIAS()
ilias initialisation
Add a drawing to the header
Create styles array
The data for the language used.
static init($a_type)
Init context by type.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) unserializesession($serialized_string)
static redirect($a_script)
http redirect to other script