Checking out your Cookies' Crumbs

Do you know what is stored in your cookies? If not, it is simple to see the contents of a cookie! This article explains what you need to enter into your browser to see the cookie from any web page. It's probably easier than you think!

provided by: 
Originally published at Internet.com


Many web sites that you visit create and leave behind small files called cookies on your system. When you revisit the site, the cookie can be read and information restored. This allows a site to keep track of customized information specific to you.

It is very easy to see what information is stored in your cookies. This can be done by entering a single line of code into the address entry box of your browser.

First go to a site. Once at that site, enter the following into the address box:

javascript:alert("Cookie:"+document.cookie)

This is actually a small piece of JavaScript that you are running. The javascript: indicates to your browser that it is about to get a piece of JavaScript code. The alert is a JavaScript command that pops up a dialog box. When you run this program, the cookie information will be put into a pop-up window like the following:

The "Cookie:" is text that will be printed within the dialog box. You can see this text is printed in the above dialog. Added to this text is the information contained in document.cookie. The actual text of the cookie is actually contained within document.cookie.

That is it! Put one line of code into the address box, press Enter, and there you have it. If you are on a site that doesn't use cookies, you will get a dialog with just the "Cookie:" text. Following is the dialog I received from this site, www.developer.com, using Internet Explorer:

Want to try it out? Go to some of your favorite sites and give it a try. I tried a few sites. Cookie information is personal so I'm not going to display the results. The following are a few sites that use cookies that you can take a look at:

http://www.asp101.com/
http://www.thinkmobile.com/
http://www.networksolutions.org/
http://www.sun.com
http://www.microsoft.com
http://www.ibm.com
http://www.amazon.com

For even more fun, try looking for cookies with different browsers. Netscape Navigator and Microsoft Internet Explorer can show different cookie information!

Note: If your browser has cookies turned off, then obviously, you won't have cookies anywhere! # # #

Author: Bradley L. Jones

Read article at Internet.com site
Related Articles
- Personal search engine
Learn how to create a personal search engine using Perl.
- Password Protection
- Validating Date Entries in Forms
Regional Articles
- Checking out your Cookies' Crumbs Alabama
- Checking out your Cookies' Crumbs Alaska
- Checking out your Cookies' Crumbs Arizona
- Checking out your Cookies' Crumbs Arkansas
- Checking out your Cookies' Crumbs California
- Checking out your Cookies' Crumbs Colorado
- Checking out your Cookies' Crumbs Connecticut
- Checking out your Cookies' Crumbs DC
- Checking out your Cookies' Crumbs Delaware
- Checking out your Cookies' Crumbs Florida
- Checking out your Cookies' Crumbs Georgia
- Checking out your Cookies' Crumbs Hawaii
- Checking out your Cookies' Crumbs Idaho
- Checking out your Cookies' Crumbs Illinois
- Checking out your Cookies' Crumbs Indiana
- Checking out your Cookies' Crumbs Iowa
- Checking out your Cookies' Crumbs Kansas
- Checking out your Cookies' Crumbs Kentucky
- Checking out your Cookies' Crumbs Louisiana
- Checking out your Cookies' Crumbs Maine
- Checking out your Cookies' Crumbs Maryland
- Checking out your Cookies' Crumbs Massachusetts
- Checking out your Cookies' Crumbs Michigan
- Checking out your Cookies' Crumbs Minnesota
- Checking out your Cookies' Crumbs Mississippi
- Checking out your Cookies' Crumbs Missouri
- Checking out your Cookies' Crumbs Montana
- Checking out your Cookies' Crumbs Nebraska
- Checking out your Cookies' Crumbs Nevada
- Checking out your Cookies' Crumbs New Hampshire
- Checking out your Cookies' Crumbs New Jersey
- Checking out your Cookies' Crumbs New Mexico
- Checking out your Cookies' Crumbs New York
- Checking out your Cookies' Crumbs North Carolina
- Checking out your Cookies' Crumbs North Dakota
- Checking out your Cookies' Crumbs Ohio
- Checking out your Cookies' Crumbs Oklahoma
- Checking out your Cookies' Crumbs Oregon
- Checking out your Cookies' Crumbs Pennsylvania
- Checking out your Cookies' Crumbs Rhode Island
- Checking out your Cookies' Crumbs South Carolina
- Checking out your Cookies' Crumbs South Dakota
- Checking out your Cookies' Crumbs Tennessee
- Checking out your Cookies' Crumbs Texas
- Checking out your Cookies' Crumbs Utah
- Checking out your Cookies' Crumbs Vermont
- Checking out your Cookies' Crumbs Virginia
- Checking out your Cookies' Crumbs Washington
- Checking out your Cookies' Crumbs West Virginia
- Checking out your Cookies' Crumbs Wisconsin
- Checking out your Cookies' Crumbs Wyoming
Related Articles
- Password Protection
Create real password protection with Perl.
- Validating Date Entries in Forms
- Personal search engine

Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML