With my logout button
okay on index.php i have
and farther down i have
and when i click logout it just wont log me out..
What am i doing wrong?
Code:
if(isset($_GET['logoff']))
{
$_SESSION = array();
session_destroy();
header("Location: login.php");
exit;
}
Code:
<a href="?logoff">Log off</a>
What am i doing wrong?