A piece of text stored by a user’s web browser. A cookie can be used for authentication, storing site preferences, shopping cart contents, the identifier for a server-based session, or anything else that can be stored as text data. Cookies can be encrypted or unencrypted.