public function logout() { unset($_SESSION['id']); Session::regenerateSession(); header("Location: index.php"); }