In this video we shall see Setting Cookies, Accessing Cookies and Deleting Cookie in PHP. PHP provided setcookie() function to set a cookie. This function requires upto six arguments and should be called before html tag. PHP provides many ways to access cookies.Simplest way is to use either $_COOKIE or $HTTP_COOKIE_VARS variables. Officially, to delete a cookie you should call setcookie() with the name argument only.