aktuelle.kurse/old_m133/Modul_Unterlagen_133_VOR/01-Modulinhalte/08 Session Sicherheit/Cookies Sessions (Wal)/PHP7/15 - cookies/setzen.php
Müller Harald 507e5da390 muh
2022-05-13 11:53:50 +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>