What do cookies do on a website?

What cookies do is ensure that each time the user comes back to a website, it remembers their preferences and browsing activities for future visits. Cookies are tiny pieces of information stored on users’ devices. Every time the user visits a site, the site sends it along with the page the user is viewing. Some websites use a feature that allows them to recognize the user as they send the cookie. Websites use the information collected using cookies to personalize the user experience.