### How to Create a Cookie
//setcookie(name, value, expire, path, domain);
<?php
$expire=time()+60*60*24*30;
setcookie("user", "Alex Porter", time()+3600);
// Print a cookie
echo $_COOKIE["user"];
// A way to view all cookies
print_r($_COOKIE);
?>
### How to Retrieve a Cookie Value
<html>...