Location: PHPKode > projects > XMasDB > xmasdb/logout.php
<?php
// start the session
session_start();

// if the user is logged in, unset the session
if (isset($_SESSION['basic_is_logged_in'])) {
	unset($_SESSION['basic_is_logged_in']);
}

// now that the user is logged out,
// go to login page
header('Location: index.php');
?>
Return current item: XMasDB