A cookie is a message given to a Web browser by a Web server. The browser stores the message in a small text file that the server embeds on the user's computer. Each time the same computer requests a page with a browser, the cookie is sent back to the server too. The main purpose of cookies is to identify users and possibly prepare customized Web pages for them. In this tutorial you'll learn about using Cookies in PHP.