Cookies are text files with small pieces of data like username and password. They serve to identify your computer when you use the internet. When you open a website, it’s server creates a cookie in which it stores the data it can identify you with. The server labels with an ID unique to you and your computer. When your computer and server exchange the cookie, the server reads the cookie data and knows what information to specifically serve to you.