A cookie, or HTTP cookie, is a small piece of text that a website asks a web browser to store and send back on later visits. Cookies let a site recognise a returning browser, which makes it possible to keep a user logged in, remember items in a shopping basket and save settings such as language. They are exchanged through headers in the HTTP protocol.
First-party cookies are set by the site being visited. Third-party cookies are set by other domains embedded in the page, usually advertising and analytics services, and are the basis of a tracking cookie that follows users across sites. In the European Union, the ePrivacy rules and the General Data Protection Regulation require consent for most non-essential cookies, which led to the familiar consent banners. Banks and payment firms use cookies alongside device fingerprinting in fraud detection, to spot logins from unfamiliar browsers. Stolen session cookies can let an attacker bypass passwords.
Ref 1300000290