moodle/auth/cas/logout.php
2005-03-13 10:14:01 +00:00

10 lines
360 B
PHP

<?php
// logout the user from CAS server (destroy the ticket)
global $CFG;
require_once($CFG->dirroot.'/config.php');
include_once($CFG->dirroot.'/lib/cas/CAS.php');
phpCAS::client($CFG->cas_version,$CFG->cas_hostname,(Integer)$CFG->cas_port,$CFG->cas_baseuri);
$backurl = $CFG->wwwroot;
phpCAS::logout($backurl);
?>