Code has been added to clipboard!

Basics oh PHP Setcookie

Example
<?php
  setcookie('our_cookie', 'current', time() + 3600, '/');
?>
<html>
  <body>
    <?php
      if(count($_COOKIE) > 0) {      	
        echo "Enabled.";
      } else { 
        echo "Disabled.";
      }  	
    ?>
  </body>
</html>