logout.php 507 B

1234567891011121314151617
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /*
  4. Call this file to disconnect from CAS session.
  5. logoutWithUrl() not used because with CAS v3 you cannot redirect your logout to a specific URL
  6. because of security reason.
  7. */
  8. require('../..//inc/global.inc.php');
  9. require_once('authcas.php');
  10. global $cas_auth_ver, $cas_auth_server, $cas_auth_port, $cas_auth_uri;
  11. phpCAS::client($cas_auth_ver,$cas_auth_server,$cas_auth_port,$cas_auth_uri);
  12. phpCAS::logout();
  13. ?>