<?php
session_start ();
?>
<form method="POST" action="./form0001.php">
<input type="password" name="p1"></input>
<input type="submit"></input>
</form>
<?php
setcookie ("c1", "Hallo Welt", time () + 3600);
echo session_id ();
echo htmlentities ($_COOKIE ["c1"]) . "<br>\n";
echo htmlentities ($_COOKIE ["c1a"]) . "<br>\n";
echo htmlentities ($_POST ["p1"]) . "<br>\n";
session_destroy ();
?>