ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
index.php
Go to the documentation of this file.
1
<?php
2
3
chdir(
'..'
);
4
5
6
$cookie_path
= dirname(dirname(
$_SERVER
[
'PHP_SELF'
]));
7
8
/* if ilias is called directly within the docroot $cookie_path
9
is set to '/' expecting on servers running under windows..
10
here it is set to '\'.
11
in both cases a further '/' won't be appended due to the following regex
12
*/
13
$cookie_path
.= (!preg_match(
"/[\/|\\\\]$/"
,
$cookie_path
)) ?
"/"
:
""
;
14
15
if
(isset(
$_GET
[
"client_id"
])) {
16
if
(
$cookie_path
==
"\\"
) {
17
$cookie_path
=
'/'
;
18
}
19
20
setcookie(
"ilClientId"
,
$_GET
[
"client_id"
], 0,
$cookie_path
,
''
);
21
$_COOKIE
[
"ilClientId"
] =
$_GET
[
"client_id"
];
22
}
23
24
define(
'IL_COOKIE_PATH'
,
$cookie_path
);
25
26
include_once
'./Services/Context/classes/class.ilContext.php'
;
27
ilContext::init
(
ilContext::CONTEXT_APACHE_SSO
);
28
29
require_once(
"Services/Init/classes/class.ilInitialisation.php"
);
30
ilInitialisation::initILIAS
();
31
32
$ilCtrl->setCmd(
'doApacheAuthentication'
);
33
$ilCtrl->callBaseClass(
'ilStartUpGUI'
);
ilInitialisation\initILIAS
static initILIAS()
ilias initialisation
Definition:
class.ilInitialisation.php:1225
$_GET
$_GET['client_id']
Definition:
saml1-acs.php:21
$_SERVER
$_SERVER['HTTP_HOST']
Definition:
raiseError.php:10
ilContext\init
static init(string $a_type)
Init context by type.
Definition:
class.ilContext.php:52
$_COOKIE
$_COOKIE[session_name()]
Definition:
xapitoken.php:54
$cookie_path
$cookie_path
Definition:
index.php:6
ilContext\CONTEXT_APACHE_SSO
const CONTEXT_APACHE_SSO
Definition:
class.ilContext.php:44
sso
index.php
Generated on Fri Apr 25 2025 22:01:11 for ILIAS by
1.8.13 (using
Doxyfile
)