Location: PHPKode > projects > BugIn and Ticketing System > bugin-0.65/inc/pre/logout.pre.inc.php
<?php
// The user is logging out, so clean up the session data...
if (isset($_SESSION['loggedin']) || isset($userinfo)) {
	buginError("Logout Successful", 1);
	session_unregister("userinfo");
	session_unregister("loggedin");
	session_unregister("view");
	session_unregister("sg");
	session_unregister("us");
	session_unregister("pw");
	session_unregister("listCol");
	session_unregister("project");
	session_unregister("userinfo");
	session_unregister("hideSQL");
	session_unregister("closedSQL");
	session_unregister("fixedSQL");
	$loggedin = 0;
	$userinfo = 0;

	$logout = 1;
	$_SESSION['loginError'] = "{$verbage['logged_out']}\n";
}

if (!$options['norefresh']) {
	header("Location: {$options['baseURL']}");
}
?>
Return current item: BugIn and Ticketing System