To set a cookie, assign it a name, value, and expiration. You can also set things but those are the main three.
setcookie("cookiename","cookievalue","expirationtime","/","",0);
To read a cookie use this line:
echo $HTTP_COOKIE_VARS["cookiename"];
Hope it helps 🙂
- Matt