A cookie is a small piece of data sent from a website and stored in a user's web browser (in a text file) while a user is browsing a website.