A cookie is a small amount of data generated by a website given to a web browser by a web server. This piece of information is stored on the client side on the user’s own computer and is then used for future use. The main purpose of cookies is to remember information about you and record your preferences when using a particular website.