What a cookie is
A small text file stored in your browser by a website. Cookies make it possible to keep state across pages (a shopping basket, a logged-in session, a consent choice) and to identify the device for analytics.
The legal framework for cookie use in the UK is the Privacy and Electronic Communications Regulations 2003 (PECR), administered by the Information Commissioner's Office.