This essay has been submitted by a student. This is not an example of the work written by our professional essay writers.
Cookies are the key way for web applications to authenticate HTTP (Hypertext Transfer Protocol) requests and to maintain client states. HTTP works in a request-response fashion. First, a client sends a request to a server. Next, the server processes the request and sends back a response to the client. Then, the connection between the client and the server is dropped and forgotten. The HTTP server treats each request independently (stateless), meaning that once the server has sent a page to the browser requesting it, the server does not remember anything about the request. Therefore, if a user were to return to the page again, the server will consider it to be the users first time. This can become annoying because the server cannot remember if the user initially identified themself when they want to re-access a page.
According to Netscape, cookies are "a general mechanism which server side connections (such as CGI scripts) can use to both store and retrieve information on the client side of the connection" (Kyrnin Magic). In simple words, a cookie is a very small piece of text information that is stored on the user's hard drive by their web browser. When a server needs to remember information for a client, the server creates a cookie that contains the information and sends the cookie to the client. The client then stores the cookie either in memory or on a hard disk. The client later attaches the cookie to every following request to the server.
A cookie can be used for authentication, shopping cart contents, storing site preferences, the identifier for a server-based session, or anything else that can be accomplished through storing text data (HTTP).Â Â Cookies may be set by the server with or without an expiration date. Cookies with an expiration date are stored by the browser until the expiration date passes and cookies without an expiration date exist until the browser closes.
History of cookies
Types of Cookies
There are two main types of cookies called session (temporary) and persistent (permanent). Session cookies are used as communication between webpage's and are stored in the computer's memory for the duration of a users' browsing session, after which are deleted when the browser is closed. Unlike session cookies, persistent cookies are not deleted when the browser is closed. A persistent cookie retains a users' information for a particular website in order to be used again in the future. They will remain on the hard drive until the limited space for cookies are full or the time stamp on the cookie expires (Kyrnin Magic).
A Web browser can be configured so that only first-party cookies coming from the originating site are maintained. It can also be set to prevent all cookies from being stored in your computer, but that severely limits the Web surfing experience. To change settings, look for the cookie options in your browser in the Options or Preferences menu (Magic).
Are cookies dangerous?
Cookies are not dangerous. They are small pieces of text, not computer programs and they cannot be executed. Because they are not executed, they cannot replicate themselves, nor can they be used to broadcast viruses. According to the Computer Incident Advisory Capability (CIAC) "[the] vulnerability of systems to damage or snooping by using web browser cookies is essentially nonexistent" (Kyrnin Magic).
It is important to remember that a cookie can only know what the user provides it. If the user fills out a form with their name, address, and phone number, that information can be stored in an HTTP cookie on their machine.
Depending on the browser type, the user may be alerted when a site is about to set a cookie on their hard drive. Most modern browsers now give users three options: accept all cookies, accept only cookies from the same server, or deny all cookies. Most browsers will also alert the user when they are prompted for a cookie so that the user can accept or decline it. However, this can be problematic, as most websites load dozens of cookies the first time the user visits (Kyrnin Magic).
Can cookies threaten a users' privacy?
Cookies are stored on the computer's hard drive; they cannot access the hard drive. Thus a cookie cannot read other information saved on the hard drive (DOI).Â Â To protect your privacy, it is helpful for the user to constantly delete cookies. However, in some Web browsers such as Internet Explorer and MSN, even if you delete cookies manually, the cookies index.dat file stores Internet surfing information which cannot be deleted manually as it is used by Windows all the time (General). Using clear history software the user cannot only delete cookies in Web browsers, but also delete cookies index.dat file automatically.