Content deleted Content added
fix citation fmt |
|||
Line 1:
{{HTTP}}
A '''cookie''', also known as a '''HTTP cookie''', '''web cookie''', or '''browser cookie''', is used for an origin website to send state information to a user's browser and for the browser to return the state information to the origin site.<ref>{{cite web | url = http://tools.ietf.org/html/rfc6265#section-3 | work=IETF | title= HTTP State Management Mechanism
As text, cookies are not [[executable]]. Because they are not executed, they cannot replicate themselves and are not [[Computer virus|viruses]]. However, they can be used by [[spyware]] to track user's browsing activities
== History ==
Line 28:
=== HttpOnly cookie ===
The HttpOnly cookie is supported by most modern browsers.<ref name="httponlyrfc">IETF [http://tools.ietf.org/html/rfc6265 HTTP State Management Mechanism
=== Third-party cookie ===
Line 71:
Cookies are arbitrary pieces of data chosen by the [[Web server]] and sent to the browser. The browser returns them unchanged to the server, introducing a [[state (computer science)|state]] (memory of previous events) into otherwise stateless HTTP transactions. Without cookies, each retrieval of a [[Web page]] or component of a Web page is an isolated event, mostly unrelated to all other views of the pages of the same site. Other than being set by a web server, cookies can also be set by a [[Scripting programming language|script]] in a language such as [[JavaScript]], if supported and enabled by the Web browser.
Cookie specifications<ref name="httponlyrfc" /><ref>{{cite web | title=Persistent client state HTTP cookies: Preliminary specification | url=http://wp.netscape.com/newsref/std/cookie_spec.html | archiveurl=http://web.archive.org/web/20070805052634/http://wp.netscape.com/newsref/std/cookie_spec.html | work= | publisher=Netscape | archivedate=2007-08-05 | date=c1999 | accessdate= }}</ref><ref>RFC 2965
=== Setting a cookie ===
Line 345:
=== window.name ===
All current web browsers can store a fairly large amount of data (
The downside is that every separate window or [[Tabbed document interface|tab]] will initially have an empty ''window.name''; in times of [[Tabbed document interface|tabbed browsing]] this means that individually opened tabs ''(initiation by user)'' will not have a window name. Furthermore ''window.name'' can be used for tracking visitors across different web sites, making it of concern for [[Internet privacy]].
Line 356:
== See also ==
* [[Dynamic HTML]]
* [[Local Shared Object]]
* [[Session Beans]]
* [[Session (computer science)]]
Line 374:
== External links ==
{{Spoken Wikipedia|HTTP_cookie.ogg|2011-04-10}}
* RFC 6265
* {{HSW|cookie|How Internet Cookies Work}}
* [http://www.microsoft.com/info/cookies.mspx Information About Cookies] from [[Microsoft]]
* [http://epic.org/privacy/internet/cookies/ Cookies] at the Electronic Privacy Information Center (EPIC)
* [http://cpe.njit.edu/dlnotes/CIS/CIS350/TakingTheByteOutOfCookies.pdf Taking the Byte Out of Cookies: Privacy, Consent, and the Web] (PDF)
* [http://archive.cabinetoffice.gov.uk/e-government/resources/handbook/html/4-7.asp Web handbook
* [http://www.comscore.com/press/release.asp?press=1389 Cookie-Based Counting Overstates Size of Web Site Audiences] at ComScore
* [http://www.pbs.org/mediashift/2007/11/dont_tread_on_our_cookiesthe_w.html Don’t Tread on Our Cookies
* [http://support.mozilla.com/en-US/kb/Cookies Mozilla Knowledgebase: Cookies]
|