This is an old version, saved 3 Dec 2026, 10:23 by TechWritereditor. See the current version.

HTTP cookie

HTTP cookie is a small piece of data that a website asks a web browser to store and send back on later visits, letting the site remember things such as a login session or a language preference. Cookies are a basic building block of the World Wide Web, but they are also widely used to track people online.

Contents
  1. History
  2. Standardisation
  3. How it works
  4. See also
  5. References

History

Cookies were invented in 1994 by Lou Montulli, a programmer at Netscape Communications. Guinness World Records dates the first use of cookies to 13 October 1994, when Netscape's own website used them to tell whether a visitor was new or had been there before.[1] Montulli wrote the original Netscape specification and chose the name "cookie", and support for them was included in the first public version of Netscape Navigator that year.[2] CERN, celebrating 30 years of the web, describes Montulli as a founding engineer at Netscape and as the creator of web cookies.[3]

Standardisation

In 1995 the Internet Engineering Task Force began work on a cookie standard, and in 1996 its working group identified "third-party" cookies, set by a site other than the one the user is visiting, as a serious privacy threat.[2] The first standard, RFC 2109, written by David Kristol of Bell Labs and Montulli, was published in February 1997.[4] A revised version, RFC 2965, followed in 2000 but was largely ignored by browser makers.[2] The current standard, RFC 6265 (April 2011), describes how cookies are actually used on the Internet and replaced RFC 2965.[5]

How it works

A web server sends a cookie in a Set-Cookie header, and the browser returns it in a Cookie header on later requests to the same site. This lets a site keep track of a session even though the underlying HTTP protocol is mostly stateless. Optional attributes set how long a cookie lasts and which addresses receive it; the Secure attribute limits it to encrypted connections such as HTTPS, and HttpOnly hides it from scripts such as JavaScript.[5] The standard notes that third-party cookies, for example from advertising networks embedded in many sites, are "particularly worrisome" because they can recognise a user across different websites.[5]

See also

References

  1. ^ First use of cookies on the internet. Guinness World Records. guinnessworldrecords.com
  2. ^ HTTP Cookies: Standards, Privacy, and Politics. arXiv (David M. Kristol). 2001-05-09. arxiv.org
  3. ^ Lou Montulli – Web at 30 speakers. CERN. 2019. web30.web.cern.ch
  4. ^ RFC 2109: HTTP State Management Mechanism. RFC Editor. 1997-02. rfc-editor.org
  5. ^ RFC 6265: HTTP State Management Mechanism. RFC Editor. 2011-04. rfc-editor.org