<?php
session_start ();
?>
<form method="POST" action="./form0002.php">
<input type="password" name="p2"></input>
<input type="submit">
</form>
<?php
setcookie ("c2", "c2", time () + 1200);
echo session_id () . "<br>\n";
echo htmlentities ($_COOKIE ["c2"]) . "<br>\n";
echo htmlentities ($_COOKIE ["c2a"]) . "<br>\n";
echo htmlentities ($_POST ["p2"]) . "<br>\n";
session_destroy ();
?>