Using cookies in php
Create a Cookie?
setcookie(name, value, expire, path, domain);
Retrieve cookie value
setcookie("user", "cookie value", time()+3600);
Delete a Cookie
To delete a cookie set the expiration date to the past date.
setcookie("user", "", time()-3600);