isUserloggedin()) { $login->logout(); header("Location: index.html"); exit; } else { header("Location: index.html"); exit; } ?>