CookiesCookies are a solution to one of the legacy problems of the http specification. This problem lies in the inconsistency of the connection between the client and the server, as with an ftp or telnet session, i.e. a separate request is sent for each document (or file) when transmitted over the http protocol.
Including a cookie in the http protocol gave a partial solution to this problem.
A cookie is a small piece of information that the server sends to the client. The client (browser) will store this information and pass it to the server with every request as part of the http header. Some cookies are stored for only one session, they are deleted after closing the browser.
Others, set for a certain period of time, are written to the file. This file is usually named 'cookie.txt'. What can you do with a cookie?