logout.php 579 B

123456789101112131415161718
  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 (api_get_path(LIBRARY_PATH).'events.lib.inc.php');
  10. require_once('authcas.php');
  11. global $cas_auth_ver, $cas_auth_server, $cas_auth_port, $cas_auth_uri;
  12. phpCAS::client($cas_auth_ver,$cas_auth_server,$cas_auth_port,$cas_auth_uri);
  13. phpCAS::logout();
  14. ?>