ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
cleardiscochoices.php
Go to the documentation of this file.
1
<?php
2
3
require_once(
'_include.php'
);
4
9
// The base path for cookies. This should be the installation directory for SimpleSAMLphp.
10
$config
=
SimpleSAML_Configuration::getInstance
();
11
$cookiePath
=
$config
->getBasePath();
12
13
// We delete all cookies which starts with 'idpdisco_'
14
foreach
(
$_COOKIE
as
$cookieName
=> $value) {
15
if
(substr(
$cookieName
, 0, 9) !==
'idpdisco_'
) {
16
/* Not a idpdisco cookie. */
17
continue
;
18
}
19
20
/* Delete the cookie. We delete it once without the secure flag and once with the secure flag. This
21
* ensures that the cookie will be deleted in any case.
22
*/
23
\SimpleSAML\Utils\HTTP::setCookie
(
$cookieName
, NULL,
array
(
'path'
=>
$cookiePath
,
'httponly'
=> FALSE), FALSE);
24
}
25
26
27
/* Find where we should go now. */
28
if
(array_key_exists(
'ReturnTo'
, $_REQUEST)) {
29
$returnTo
=
\SimpleSAML\Utils\HTTP::checkURLAllowed
($_REQUEST[
'ReturnTo'
]);
30
}
else
{
31
/* Return to the front page if no other destination is given. This is the same as the base cookie path. */
32
$returnTo
=
$cookiePath
;
33
}
34
35
/* Redirect to destination. */
36
\SimpleSAML\Utils\HTTP::redirectTrustedURL
(
$returnTo
);
37
$_COOKIE
$_COOKIE['client_id']
Definition:
server.php:9
$returnTo
if(!isset($_REQUEST['ReturnTo'])) $returnTo
Definition:
authpage.php:16
SimpleSAML\Utils\HTTP\checkURLAllowed
static checkURLAllowed($url, array $trustedSites=null)
Check if a URL is valid and is in our list of allowed URLs.
Definition:
HTTP.php:322
$cookiePath
$cookiePath
Definition:
cleardiscochoices.php:11
SimpleSAML\Utils\HTTP\redirectTrustedURL
static redirectTrustedURL($url, $parameters=array())
This function redirects to the specified URL without performing any security checks.
Definition:
HTTP.php:962
$cookieName
$cookieName
Definition:
authmemcookie.php:37
SimpleSAML\Utils\HTTP\setCookie
static setCookie($name, $value, $params=null, $throw=true)
Set a cookie.
Definition:
HTTP.php:1107
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
$config
$config
This page clears the user's IdP discovery choices.
Definition:
cleardiscochoices.php:10
SimpleSAML_Configuration\getInstance
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
Definition:
Configuration.php:297
libs
composer
vendor
simplesamlphp
simplesamlphp
modules
core
www
cleardiscochoices.php
Generated on Tue Jan 28 2025 19:01:12 for ILIAS by
1.8.13 (using
Doxyfile
)