setcookie.php

<?php
  setcookie('sitecookie','set'); // set a session cookie
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Set cookie</title>
    <meta charset="utf-8">
  </head>
  <body>
    <h1>Cookie is now set</h1>
  </body>
</html>