Website cookies are text files containing small amounts of data that are created when you arrive on a web page and are stored in your Internet browser automatically. Cookies are used to tailor the experience of using a specific website to a certain user. This information is encrypted, so only the website and your web browser can access it.
Cookies can track which pages you visited while on a site, the IP address and general location of your device, and sometimes login information. This is why some websites will reference where you live, remember your login details from your previous visit, or may suggest returning to a page you've viewed in the past.
There are two main types of Internet cookie:
Session (or 'transient') cookies are only stored for the duration of a web browsing session and are deleted once it's over. These are stored in your browser's temporary memory folder and do not collect personal data.
Session cookies are commonly used by e-commerce websites to pass information from one page to another. For example, session cookies are the reason that the items you place into a shopping bag are retained until you hit checkout – and why they often disappear if you end the session and return later. If you only want to accept session cookies, this can be changed in your browser settings.
A stored or 'persistent' cookie is kept on your hard drive until it expires (this expiration date is set when the cookie is created). Stored cookies collect important information about your activity on a website that makes future visits easier. For example, if accepted, stored cookies can remember your username and password so these details are automatically filled in when you return to a website.