Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Before HTML5, websites could store only small amounts of text-based information on a userās computer using cookies. A cookie is a key/value pair in which each key has a corresponding value. The key and value are both strings. Cookies are stored by the browser on the userās computer to maintain client-specific information during and between browser sessions. A website might use a cookie to record user preferences or other information that it can retrieve during the clientās subsequent visits. For example, a website can retrieve the userās name from a cookie and use it to display a personalized greeting. Similarly, many websites used cookies during a browsing session to track user-specific information, such as the contents of an online shopping cart.