In web design, a cookie is a small text file that a web site saves on a user’s computer. The cookie stores information about that user. On the user’s next visit to the same web site, the web site retrieves the cookie to access the information. Cookies are useful for saving bits of information like user preferences.