Cookies are often used for applications such as shopping carts, storing preferences so that a visitor does not have to provide duplicate information on every visit to a website, and to allow access to certain services or areas of a website for websites that restrict certain portions of their content, among other purposes.