Summary
A Cookie is a small text based file given to you by a visited website that helps identify you to that site. Cookies are used to maintain state information as you navigate different pages on a Web site or return to the Web site at a later time.  Â
More Information
Cookies are defined in the Request for Comments (RFC) 2965 document, "HTTP State Management Mechanism." You can find RFC documents at the following RFC Editor Web site:
http://www.rfc-editor.org Cookies can be created by client-side script in a Hypertext Markup Language (HTML) page (for example, by using a script written in Microsoft Visual Basic Scripting Edition or JScript), by Win32 programs that use the Microsoft Win32 Internet functions (InternetSetCookie and InternetGetCookie), or by server-side script (for example, a script written in Visual Basic Scripting Edition in an Active Server Pages [ASP] page, or a Common Gateway Interface [CGI] script). Important: Cookies cannot be used to run code (run programs) or to deliver viruses to your computer. The purpose of a cookie is to tell the Web server that you have returned to a specific Web page. For example, if you personalize Web pages, or register for products or services, a cookie helps the Web page server to recall your specific information. This may be useful to simplify the process of recording your personal information, such as billing addresses, shipping addresses, and so on. When you visit the same Web site, the information you previously provided can be retrieved, so you can easily use the Web site features that you previously chose. You have the ability to enable or disable cookies, or have Internet Explorer prompt you before accepting cookies. Note that disabling cookies may prevent some Web services from working correctly, and disabling cookies does not make you anonymous or prevent Web sites from tracking your browsing habits. HTTP requests still include information about where you came from (HTTP Referer), your IP address, browser version, operating system, and other information.
How to Manage Cookies in Internet Explorer
For information about managing cookies in Internet Explorer, see one of the following sections, as appropriate for your version of Internet Explorer.
Internet Explorer 9
To delete cookies in Internet Explorer 9, follow these steps:
-
Open Internet Explorer by clicking the Start button. In the Search box, type Internet Explorer, and then, in the list of results, click Internet Explorer.
-
Click the Tools button , point to Safety, and then click Delete browsing history.
-
Select the Cookies check box, and then click Delete.
To block or allow all cookies in Internet Explorer 9, follow these steps:
-
Open Internet Explorer by clicking the Start button. In the Search box, type Internet Explorer, and then, in the list of results, click Internet Explorer.
-
Click the Tools button , and then click Internet options.
-
Click the Privacy tab, and then, under Settings, move the slider to the top to block all cookies or to the bottom to allow all cookies, and then click OK.
Learn how to view and delete website cookies in Internet Explorer 9.
Internet Explorer 8
To delete cookies in Internet Explorer 8, follow these steps::
-
Open Internet Explorer by clicking the Start button. In the Search box, type Internet Explorer, and then, in the list of results, click Internet Explorer.
-
Click Tools from the menu, and then click Delete browsing history.
-
Select the Cookies check box, and then click Delete.
To block or allow all cookies in Internet Explorer 8, follow these steps::
-
Open Internet Explorer by clicking the Start button. In the Search box, type Internet Explorer, and then, in the list of results, click Internet Explorer.
-
Click the Tools button , and then click Internet options.
-
Click the Privacy tab, and then, under Settings, move the slider to the top to block all cookies or to the bottom to allow all cookies, and then click OK.
Internet Explorer 7
To delete cookies in Internet Explorer 7, follow these steps:
-
Open Internet Explorer by clicking the Start button. In the Search box, type Internet Explorer, and then, in the list of results, click Internet Explorer.
-
Click Tools from the menu, and then click Delete browsing history.
-
Click the Delete Cookies button
-
Click Yes when asked it you want to delete cookies
To block or allow all cookies in Internet Explorer 7, follow these steps:
-
Open Internet Explorer by clicking the Start button. In the Search box, type Internet Explorer, and then, in the list of results, click Internet Explorer.
-
Click the Tools button , and then click Internet options.
-
Click the Privacy tab, and then, under Settings, move the slider to the top to block all cookies or to the bottom to allow all cookies, and then click OK.
Internet Explorer 6
To Delete cookies in Internet Explorer 9, follow these steps:
-
Open Internet Explorer by clicking the Start button. In the Search box, type Internet Explorer, and then, in the list of results, click Internet Explorer.
-
Click the Tools button , point to Safety, and then click Delete browsing history
-
Select the Cookies check box, and then click Delete.
For additional information about managing cookies in Internet Explorer 6, click the following article number to view the article in the Microsoft Knowledge Base:
283185 How to Manage Cookies in Internet Explorer 6
Persistent Cookies vs. Session Cookies
Cookies are either stored in memory (session cookies) or placed on your hard disk (persistent cookies). Persistent cookies are written to the Cookies folder under either your user profile folder or the
Windir\Cookies folder. The Temporary Internet Files index is updated with pointers to the actual cookies files. For additional information about persistent and session cookies, click the article number below to view the article in the Microsoft Knowledge Base:223799 Description of Persistent and Per-Session Cookies in Internet Explorer
First-Party and Third-Party Cookies
First-party cookies are cookies that are associated with the host domain. Third-party cookies are cookies from any other domain. For example, suppose that you visit www.example1.com by typing the URL in the address bar, and sample.example1.com, www.example2.com, and www.example1.net have banner ads on this page. If these sites all set cookies, the cookies from www.example1.com and sample.example1.com are in a first-party context, and the cookies from www.example2.com and www.example1.net are in a third-party context.
NOTE: If you visit www.example1.com over a secure connection by using Secure Hypertext Transfer Protocol (HTTPS), content on the page that is not using HTTPS is considered third-party content. Also note that if you gain access to a site that uses cookies by using a frameset, or portal, on another site, those cookies are considered third-party content.
Cookies are uniquely assigned to your user profile, and can only be read by the host domain that issues the cookie to you. Important: Because of a known issue in Internet Explorer 4 and Internet Explorer 5, a Web site may be able to retrieve cookies that were set by another host domain. This problem has been corrected in Internet Explorer 5.01 Service Pack 1 and later and in Internet Explorer 5.5 and later. Internet Explorer 6 and above implement advanced cookie filtering that is based on the Platform for Privacy Preferences (P3P) specification. By default, Internet Explorer 6 blocks third-party cookies that do not have a compact policy (a condensed computer-readable privacy statement) or third-party cookies that have a compact policy which specifies that personally identifiable information is used without your implicit consent. First-party cookies that have a compact policy which specifies that personally identifiable information is used without implicit consent are downgraded (deleted when you close Internet Explorer). First-party cookies that do not have a compact policy are leashed (restricted so that they can only be read in the first-party context).Viewing the Information in a Cookie
To view the information in a cookie, double-click the cookie to open it. For information about how cookies are used on Microsoft's Web site, view the following Microsoft Web site: