Cookies are small files stored on a user's computer by websites that visit. They hold modest amounts of data to customize web pages for users. Cookies are created when a new web page is loaded, and can last until the browser closes or for a specified time period. Cookies allow information to be passed between website sessions without requiring large amounts of server storage. While cookies don't inherently pose privacy or security risks, some track users' browsing histories across sites.