<?php session_start (); ?> <form method="POST" action="./PHPTest20241125.php"> <input type="text" name="PHPTest20241125001"></input> <input type="submit"> </form> <?php echo session_id () . "<br>\n"; setcookie ("PHPTest20241125002", "Ich bin das erste Keks", time () + 1600); echo htmlentities ($_POST ["PHPTest20241125001"]) . "<br>\n"; echo htmlentities ($_COOKIE ["PHPTest20241125002"]) . "<br>\n"; echo htmlentities ($_COOKIE ["PHPTest20241125003"]) . "<br>\n"; session_destroy (); ?> |