ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
disable.php
Go to the documentation of this file.
1<?php
2
11$params = array(
12 'expire' => (mktime(0,0,0,1,1,2038)),
13 'secure' => FALSE,
14 'httponly' => TRUE,
15);
16\SimpleSAML\Utils\HTTP::setCookie('NEGOTIATE_AUTOLOGIN_DISABLE_PERMANENT', 'True', $params, FALSE);
17
20$session->setData('negotiate:disable', 'session', FALSE, 24*60*60);
21$t = new SimpleSAML_XHTML_Template($globalConfig, 'negotiate:disable.php');
22$t->data['url'] = SimpleSAML\Module::getModuleURL('negotiate/enable.php');
23$t->show();
An exception for terminatinating execution or to throw for unit testing.
static getModuleURL($resource, array $parameters=array())
Get absolute URL to a specified module resource.
Definition: Module.php:303
static setCookie($name, $value, $params=null, $throw=true)
Set a cookie.
Definition: HTTP.php:1107
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
static getSessionFromRequest()
Retrieves the current session.
Definition: Session.php:243
$t
Definition: disable.php:21
$globalConfig
Definition: disable.php:18
$session
Definition: disable.php:19
$params
Definition: disable.php:11