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