Whenever you visit a new website, you probably see a pop-up asking if you will allow cookies to track you while on that site. But, do you know what cookies are or how they are used? Keep reading to find these answers.
What is a cookie?
Cookies are usually small text files, given ID tags that are stored on your computer's browser directory or program data subfolders.
The website stores a corresponding file (with same ID tag)to the one they set in your browser and in this file they can track and keep information on your movements within the site and any information you may have voluntarily given while visiting the website, such as email address.
Cookies are often indispensable for websites that have huge databases, need logins, have customizable themes, other advanced features.
Cookies usually don't contain much information except for the url of the website that created the cookie, the duration of the cookie's abilities and effects, and a random number. Due to the little amount of information a cookie contains, it usually cannot be used to reveal your identity or personally identifying information.
However, marketing is becoming increasingly sophisticated and cookies in some cases can be agressively used to create a profile of your surfing habits.
There are two types of cookies: session cookies and persistent cookies. Session cookies are created temporarily in your browser's subfolder while you are visiting a website. Once you leave the site, the session cookie is deleted.
On the other hand, persistent cookie files remain in your browser's subfolder and are activated again once you visit the website that created that particular cookie. A persistent cookie remains in the browser's subfolder for the duration period set within the cookie's file.
How cookies are used on your computer
A cookie is a small file of letters and numbers downloaded on to your computer when you access certain websites. Like virtual door keys, cookies unlock a computer's memory and allow a website to recognize users when they return to a site by opening doors to different content or services.
Like a key, a cookie itself does not contain information, but when it is read by a browser it can help a website improve the service delivered.
Cookie files are automatically lodged into the cookie file - the memory of your browser - and each one typically contains:
- The name of the server the cookie was sent from
- The lifetime of the cookie
- A value - usually a randomly generated unique number
The website server which sent the cookie uses this number to recognize you when you return to a site or browse from page to page. Only the server that sent a cookie can read, and therefore use, that cookie.
What is a cookie?
A cookie is a text-only string of information that a website transfers to the cookie file of the browser on the hard disk of computers so that the website can remember who you are.
What information does a computer cookie contain?
A cookie will typically contain the name of the domain from which the cookie has come, the "lifetime" of the cookie, and a value, usually a randomly generated unique number.
What types of computer cookies are there?
Two common types of cookies are used on most websites — session cookies, which are temporary cookies that remain in the cookie file of your browser until you leave the site, and persistent cookies, which remain in the cookie file of your browser for much longer (though how long will depend on the lifetime of the specific cookie).