<head> of your html document
<script type="text/javascript">
var cookies1 = "";
if (navigator.cookieEnabled == true) cookies1 = "Permitted";
else if (navigator.cookieEnabled == false) cookies1 = "Forbidden";
else cookies1 = "Unsupported Request";
</script>
<body>
<script type="text/javascript">
<!--
document.write(""+cookies1+"");
//-->
</script>
Web Browser Cookies Enabled - Displays:
Save the following script as cookies.js
<!--
var cookies2 = "";
if (navigator.cookieEnabled == true) cookies2 = "Permitted";
else if (navigator.cookieEnabled == false) cookies2 = "Forbidden";
else cookies2 = "Unsupported Request";
document.write(""+cookies2+"");
//-->
<body> of your html document
<script src="/js/cookies.js" type="text/javascript"></script>
Web Browser Cookies Enabled - Displays:
<body> of your html document
<script type="text/javascript">
<!--
var cookies3 = "";
if (navigator.cookieEnabled == true) cookies3 = "Permitted";
else if (navigator.cookieEnabled == false) cookies3 = "Forbidden";
else cookies3 = "- Unsupported Request";
document.write ("Cookies "+cookies3+"");
//-->
</script>
Web Browser Cookies Enabled - Displays:
A cookie, also known as an 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. The state information can be used for authentication, identification of a user session, user's preferences, shopping cart contents, or anything else that can be accomplished through storing text data on the user's computer. Cookies cannot be programmed, cannot carry viruses, and cannot install malware on the host computer. However, they can be used by spyware to track user's browsing activities; a major privacy concern which prompted European and US law makers to take action. Cookies can also be stolen by hackers to gain access to a victim's web account. The term "cookie" was derived from "magic cookie," which is the packet of data a program receives and sends again unchanged. Magic cookies were already used in computing when computer programmer Lou Montulli had the idea of using them in web communications in June 1994. At the time he was an employee of Netscape Communications, which was developing an e-commerce application for a customer. Cookies provided a solution to the problem of reliably implementing a virtual shopping cart. Together with John Giannandrea, Montulli wrote the initial Netscape cookie specification the same year. Version 0.9beta of Mosaic Netscape, released on October 13, 1994, supported cookies. The first use of cookies, out of the labs, was checking whether visitors to the Netscape website had already visited the site. Montulli applied for a patent for the cookie technology in 1995, and US 5774670 was granted in 1998. Support for cookies was integrated in Internet Explorer in version 2, released in October 1995. The introduction of cookies was not widely known to the public at the time. In particular, cookies were accepted by default, and users were not notified of their presence. The general public learned about them after the Financial Times published an article about them on February 12, 1996. In the same year, cookies received a lot of media attention, especially because of potential privacy implications.