<?
// logout page
// destroy session
session_start();
session_unset();
session_destroy();
// destroy the cookies
setcookie('username', "", time() - 60 * 60 * 24 * 7);
setcookie('auth', "", time() - 60 * 60 * 24 * 7);
// redirect
header('Location:http://www.lozltov.com/');die();
$title = "LozltoV > Members > Logout";
require ($_SERVER['DOCUMENT_ROOT'] . '/inc/html_header.php');
echo "<div id=\"menu\">";
include($_SERVER['DOCUMENT_ROOT'] . '/inc/login_form.php');
include($_SERVER['DOCUMENT_ROOT'] . '/inc/user_nav.php');
include($_SERVER['DOCUMENT_ROOT'] . '/inc/google_ad.php');
echo "</div>";
echo "<div id=\"content\">";
echo "</div>";
require ($_SERVER['DOCUMENT_ROOT'] . '/inc/html_footer.php');
?>
When I'm logged into the site, I'll go to the page and It wont delete the cookies or destroy my session (ie. it doesn't work). Any help would be much appreciated
