A cookie is used to identify a user. A cookie is a small info file that the server embeds on the user's computer. Each time the same computer requests a page with a browser, browser send it to server.Cookie is a client side info, we can retrive this. With following function we can create Cookie
The setcookie() function is used to set a cookie.
Note: The setcookie() function must appear BEFORE the tag.
setcookie(name, value, expire_date, path, domain);
setcookie("uservalue", "230", time()+3600);
Retrieve a Cookie Value