<?php
session_start ();
?>
<form method="POST" action="./phptest20241227.php">
<input type="password" name="phptest20241227001" id="phptest20241227001"></input>
<input type="submit"></input>
</form>
<?php
echo session_id () . "<br>\n";
setcookie ("phptest20241227002", "ich bin das erste cookie", time () + 3600);
echo htmlentities ($_POST ["phptest20241227001"]) . "<br>\n";
echo htmlentities ($_COOKIE ["phptest20241227002"]) . "<br>\n";
echo htmlentities ($_COOKIE ["phptest20241227003"]) . "<br>\n";
session_destroy ();
?>
|