I use sessions and cookies. I want to get rid of all instances of both with a logout page. I'm FAIRLY certain the Sessiion part is not the problem. Anyway, here's the code:
<?php
foreach ($_COOKIE as $key=>$value)
{
setcookie($key, "", time() - 3600);
}
$_COOKIE = array();
session_start();
session_unset();
$_SESSION = array();
session_destroy();
header("Location: view_album.php");
exit;
?>