A cookie is a small message sent by the Web server to a your web client. This message is stored by the browser as a text file. The basic purpose of cookie is to store information needed by a server at the user end only. The cookie is used to send information back to the Web Server each time the browser requests a page from the server. For example, a website may ask you to fill up a form with the information about your name and interests. This information is packaged by the server into a cookie and sent to your Web browser which stores it for later use. The next time, you go to the same Website, your browser will send the stored cookie to the Web server along with the request for a web page. This way, server will be able to remember you and send you only that information that you had desired earlier.