|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
The session cookie of ILIAS in the LTI flows. More...
Collaboration diagram for ilLTISessionCookie:Static Public Member Functions | |
| static | allowCrossSite () |
| Sends the session cookie again as SameSite=None, with the path and the domain of the one PHP sends so that it replaces that one instead of adding a second cookie of the same name. More... | |
| static | remove () |
| Removes the session cookie and the client cookie from the browser at the end of an LTI session. More... | |
The session cookie of ILIAS in the LTI flows.
ILIAS sends it as SameSite=Lax, which keeps it from requests another site starts: the pages ILIAS shows inside the iframe of a platform, and the POST with which a tool asks for the id_token of a launch. For these the cookie is sent again as SameSite=None.
Definition at line 28 of file class.ilLTISessionCookie.php.
|
static |
Sends the session cookie again as SameSite=None, with the path and the domain of the one PHP sends so that it replaces that one instead of adding a second cookie of the same name.
The header is set directly, as some LTI responses are echoed by celtic/lti and never pass the HTTP service. A SameSite=None cookie must be secure; it is marked so even when ILIAS does not detect HTTPS behind a proxy, and a browser on plain HTTP just ignores it.
Definition at line 38 of file class.ilLTISessionCookie.php.
References $parameters.
Referenced by ilObjLTIToolGUI\_goto(), ilLTILoginGUI\authenticate(), ilLTIAdvantagePlatformConnection\onAuthenticate(), and ilLTIAdvantagePlatformLaunchRenderer\sendPage().
Here is the caller graph for this function:
|
static |
Removes the session cookie and the client cookie from the browser at the end of an LTI session.
The headers are set directly as well: the end of an LTI session usually redirects to the platform with ilCtrl::redirectToURL(), which sends a new response and drops the cookies of the HTTP service.
Definition at line 62 of file class.ilLTISessionCookie.php.
References $parameters.
Referenced by ilLTIViewGUI\logout().
Here is the caller graph for this function: