aktuelle.kurse/old_m133/4_Modulinhalte_und_Uebungen/08-Session-Sicherheit/Cookies Sessions (Wal)/PHP7/16 - sessions/lesen.php

26 lines
469 B
PHP
Raw Normal View History

2022-02-23 22:44:33 +01:00
<?php
session_start();
?>
<html>
<head>
<title>Sessions</title>
</head>
<body>
<p>Programmiersprache:
<?php
if (isset($_SESSION["Programmiersprache"])) {
echo htmlspecialchars($_SESSION["Programmiersprache"]);
}
?>
</p>
<p>Sprachversion:
<?php
if (isset($_SESSION["Sprachversion"])) {
echo htmlspecialchars($_SESSION["Sprachversion"]);
}
?>
</p>
<p><a href="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>">Neu laden</a></p>
</body>
</html>