Why use cookies
Posted by David on March 17th, 2007 filed in JavaScriptCookies allow you to store information about a user’s visit on that user’s computer and retrieve it when the userrevisits your site.
Two common reasons web developers use cookies are
To idetify visitors
You can detect when a user has previously visited your site and customize what that user sees on subsequent visits.
To save transaction state
You can store the status of any lengthy transactions between your site and your visitors’ browsers to safeguard against interruptions.
Here are some limits of cookies:
Where cookies are placed:
The place is fixed, you can check it on your browser’s options.
How large cookie files can be:
4K only.
how many cookies any given Website can place on a user’s hard drive:
20 cookies per site and set an overall total of 300 cookies per browser.
Which sites have access to cookies:
Cookie visibility is configurable.