<?php ob_start(); session_start(); $_SESSION['username'] = ""; session_destroy(); header("location: index.php?login=logout"); ?>