In the web space, a cookie is a piece of information that a web server provides; this is stored in users’ browser memory. These bits of information can be used for a range of purposes. A very common example would be when your username is stored so that the next time you visit the site, your username will be prefilled when you log in.