Cookie

HTTP cookies (also called web cookies, Internet cookies, browser cookies, or simply cookies) are small blocks of dataarrow-up-right created by a web serverarrow-up-right while a userarrow-up-right is browsingarrow-up-right a websitearrow-up-right and placed on the user's computer or other device by the user's web browserarrow-up-right. Cookies are placed on the device used to access a website, and more than one cookie may be placed on a user's device during a session.

Cookies serve useful and sometimes essential functions on the webarrow-up-right. They enable web servers to store statefularrow-up-right information (such as items added in the shopping cart in an online storearrow-up-right) on the user's device or to track the user's browsing activity (including clicking particular buttons, logging inarrow-up-right, or recording which pages were visited in the pastarrow-up-right). They can also be used to save for subsequent use information that the user previously entered into form fieldsarrow-up-right, such as names, addresses, passwordsarrow-up-right, and payment card numbersarrow-up-right.

Authentication cookies are commonly used by web servers to authenticatearrow-up-right that a user is logged in, and with which accountarrow-up-right they are logged in. Without the cookie, users would need to authenticate themselves by logging in on each page containing sensitive information that they wish to access. The security of an authentication cookie generally depends on the security of the issuing website and the user's web browserarrow-up-right, and on whether the cookie data is encryptedarrow-up-right. Security vulnerabilitiesarrow-up-right may allow a cookie's data to be read by an attackerarrow-up-right, used to gain access to user dataarrow-up-right, or used to gain access (with the user's credentials) to the website to which the cookie belongs (see cross-site scriptingarrow-up-right and cross-site request forgeryarrow-up-right for examples).

Tracking cookies, and especially third-party tracking cookiesarrow-up-right, are commonly used as ways to compile long-term records of individuals' browsing historiesarrow-up-right — a potential privacy concernarrow-up-right that prompted European and U.S. lawmakers to take action in 2011. European law requires that all websites targeting European Unionarrow-up-right member states gain "informed consentarrow-up-right" from users before storing non-essential cookies on their device.

Source: https://en.wikipedia.org/wiki/HTTP_cookiearrow-up-right

Last updated