A cookie is a piece of data a web server sends to a browser. It comprises unique identifiers web servers can use to remember you, your preferences and online browsing patterns. This allows the server to customize advertisements and other internet content to your preferences to provide a more satisfactory user experience.