By Using
setcookie(name,value,expire,path,domain);
function ,you can set the cookies in PHP.
e.g. setcookie("user","xyz",time()+3600) ;
The above written function will set the cookie.
For Destroying the cookie, you should set the cookie in past.
e.g. setcookie("user","xyz",time()-3600);