<?php setcookie ("MyCookie17", "Ja, ja", time () + 2400); ?> <script> window.location="./getcookie.php"; </script>