Setting a Session Cookie
<? SetCookie('Cookie_Name','value'); ?>
Setting a Persistent Cookie
<? SetCookie('Cookie_Name','value',
mktime(12,0,0,11,22,2002) ); ?>
Reading a Cookie
<? echo $HTTP_COOKIE_VARS['Cookie_Name']; ?>
Deleting the Cookies
<? SetCookie('Cookie_Name',''); ?>
<? SetCookie('Cookie_Name','',
mktime(12,0,0,11,22,1970) ); ?>
Other Optional Paramters
Path, Domain, and Secure parameters can also be set to restrict a
cookie to a certain path, domain or in the case of the
Secure parameter, limit the cookie to only be
set if the request came in over an SSL connection.