A Cookie is a text file that the server embeds on the user’s computer. A cookie is used to identify a user. These cookies are also used for tracking purpose.PHP supports HTTP cookies. These cookies are usually set in HTTP header. With the help of PHP you can create and delete the cookie.