Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
require_once "config.php"; | ||
require_once "go.php"; | ||
|
||
// Unset all of the session variables. | ||
$_SESSION = array(); | ||
// If it's desired to kill the session, also delete the session cookie. | ||
// Note: This will destroy the session, and not just the session data! | ||
if (ini_get("session.use_cookies")) { | ||
$params = session_get_cookie_params(); | ||
setcookie(session_name(), '', time() - 42000, | ||
$params["path"], $params["domain"], | ||
$params["secure"], $params["httponly"] | ||
); | ||
} | ||
session_destroy(); | ||
|
||
$dest = $institutions[$institution]['base_uri']; | ||
|
||
if (AUTH_METHOD == 'cas') { | ||
GoAuthCas::configurePhpCas(); | ||
phpCAS::logoutWithRedirectServiceAndUrl($dest, $dest); | ||
} | ||
|
||
//redirect on completion | ||
header("location: ".$dest); | ||
exit; |