Cookies were invented by Netscape and have long been an integral part of the internet.
Cookies try to address the fundamental "problem" that webpages do not have memory, yet could improve your experience by remembering how you have interacted with them.
Cookies can for example hold preferences you have selected on the website so that you do not have to reset these preferences each time you visit the site.
A cookie may save your username if you select the "Remember Me" box presented by many websites that require you to log in.
If a website contains adverts then the companies that have placed those adverts may also store cookies on your computer.
The name of your shopping basket is just an alphanumeric string of characters such as "T98smDIcKGkAABzyHuYAAAAB".
Then when you want to view your shopping basket, add or delete items from your basket or go to the checkout, we can identify which is your shopping basket.