What Are Cookies? Or What is a Cookie?

Cookies are small files stored on the user’s computer. They are designed to hold a modest amount of data specific to a particular customer and website. They are accessible through the Web server or the client computer. This allows the server to provide a page tailored to a particular user, or the page itself may contain a script that knows the cookie data and can thus carry information from a visit to the website (or associated site) to the following.

How Cookies Work ?

Your web browser stores and manages cookies. You can find a list of websites storing cookies and view the cookies themselves – although it is usually not interesting to check the content of cookies – in your browser settings. If you use multiple web browsers on your computer, each browser has its own set of cookies. Web sites are only allowed to view their own cookies. For example, when you visit How-To Geek, you can not review cookies from other websites. This prevents malicious websites from watching and stealing your login sessions.

Why are Cookies Used?

Cookies are a convenient way to transport information from one session from one website to another, or between sessions on related websites, without having to overload a server computer with huge amounts of data. Storing the data on the server without using cookies would also be problematic, as it would be difficult to retrieve the information of a particular user without requiring login at each visit to the website. If there is a large amount of information to be stored, a cookie can simply be used as a means of identifying a given user, so that other related information can be viewed in a server-side database