The following tutorial gives a brief explanation of the overview of cookies.
CodeExample HereCode:<?php
$ip = $_SERVER['REMOTE_ADDR']; //Gets Clients I.P Address
if (!isset($_COOKIE['testcookie'])) { //Checks For Cookie On Clients Harddrive
setcookie("testcookie", $ip); //Sets New Cookie With The Content of Clients I.P Address
echo 'Your Cookie Has Been Set!';
} else {
echo 'Your Cookie is already set!';
}
?>
Brought To You By PHPMini