aktuelle.kurse/m133/Modul_Unterlagen_133_VOR/01-Modulinhalte/08 Session Sicherheit/Cookies Sessions (Wal)/PHP7/15 - cookies/setzen.php
Harald G. Mueller 28ff49e098 muh
2023-06-29 07:50:41 +02:00

16 lines
302 B
PHP

<?php
setcookie("Programmiersprache", "PHP",
time() + 60*60*12, "/");
setcookie("Sprachversion", "7",
mktime(0, 0, 0, 12, 24, 2016), "/");
setcookie("Session", "abc123", null, "/");
?>
<html>
<head>
<title>Cookies</title>
</head>
<body>
<p>Cookies wurden gesetzt!</p>
</body>
</html>