PHP Classes

File: web/SSO/modules/negotiate/www/disable.php

Recommend this page to a friend!
  Classes of william amed   Raptor 2   web/SSO/modules/negotiate/www/disable.php   Download  
File: web/SSO/modules/negotiate/www/disable.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Raptor 2
Framework that takes routes from annotations
Author: By
Last change:
Date: 8 years ago
Size: 626 bytes
 

Contents

Class file image Download
<?php

/**
 *
 *
 * @author Mathias Meisfjordskar, University of Oslo.
 * <mathias.meisfjordskar@usit.uio.no>
 * @package simpleSAMLphp
 */

$params = array(
   
'expire' => (mktime(0,0,0,1,1,2038)),
   
'secure' => FALSE,
   
'httponly' => TRUE,
);
SimpleSAML_Utilities::setCookie('NEGOTIATE_AUTOLOGIN_DISABLE_PERMANENT', 'True', $params, FALSE);

$globalConfig = SimpleSAML_Configuration::getInstance();
$session = SimpleSAML_Session::getSessionFromRequest();
$session->setData('negotiate:disable', 'session', FALSE, 24*60*60);
$t = new SimpleSAML_XHTML_Template($globalConfig, 'negotiate:disable.php');
$t->show();