<!-- witaj komunikat, jeśli strona odświerzona przez 5s -->
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<?php
if (!isset($_COOKIE["odsiwerzanie"])) {
echo"<h1>Witaj</h1>";
} else {
echo "<h1>Strony bez celu nie odświerzaj!</h1><h2>~ mistrz Yoda</h2>";
}
setcookie("odsiwerzanie","tak", time()+5) ;
?>
</body>
</html>