$action = $_GET['action']; if ($action == "logout") { session_start(); session_destroy(); //header ("Location: index.php"); } ?>