1: <?php2: session_start();3: $name =$_SESSION['name'];4: session_destroy();5: header("location:goodbye.php?name=$name");6: ?>