A cookie is a small file with information about the user that is stored by a web server on the hard drive and later used by a web browser when requesting information from the server. Typically, this text file contains the user's ID, preferences, the cookie's expiration date, and more. All of this helps to provide faster and more convenient access when revisiting a website.
Cookies differ from each other and serve various functions.