Location: PHPKode > projects > Online Fantasy Football League > offl-0.2.6/www/logout.php
<?php
/**
 * OFFL Logout
 *
 * Clears all session and cookie data from a client
 *
 * @author Stephen Rochelle <hide@address.com>
 * @version OFFL v0.2
 * @copyright Copyright (c) 2004 Stephen Rochelle.  Some rights reserved.
 * @package offl-ui
 */

// buffer output while cookies are modified
ob_start();

$pageTitle = "OFFL Logout";
$public = TRUE;
	
require_once("offlconfig.php");
require_once($DOC_ROOT . "/lib/header.php");

setcookie(OFFL_COOKIE_NAME, "", 10); // timeout in 1970

unset($_SESSION["admin"]);
unset($_SESSION["login"]);
unset($_SESSION["offset"]);
unset($_SESSION["osconfirm"]);
unset($_SESSION["user_id"]);
unset($_SESSION["fflteam_id"]);
unset($_SESSION["league_id"]);
unset($_SESSION["login_time"]);
unset($_COOKIE[OFFL_COOKIE_NAME]);

// legacy setting, just in case
unset($_SESSION["fflteamid"]);

// end output buffering
ob_end_flush();

?>
<h2 class="success">You have successfully logged out of OFFL.</h2>
<META http-equiv="refresh" content="1; URL=<?php echo $WEB_ROOT . "/index.php"; ?>">
<?php require($DOC_ROOT . "/lib/footer.php"); ?>
Return current item: Online Fantasy Football League