prepare('DELETE FROM `sessions` WHERE `session_id`=?;'); $deleteQuery->bind_param("s", $_COOKIE["token"]); $deleteQuery->execute(); unset($_SESSION); session_destroy(); setcookie("token", "logout", 0, "/", ""); header("Location: /../"); ?>