{"id":7565,"date":"2021-08-07T17:36:54","date_gmt":"2021-08-07T17:36:54","guid":{"rendered":"https:\/\/gabrielreis.pt\/internet-cookies-what-are-they\/"},"modified":"2026-11-21T08:38:32","modified_gmt":"2026-11-21T08:38:32","slug":"internet-cookies-what-are-they","status":"publish","type":"post","link":"https:\/\/gabrielreis.pt\/en\/internet-cookies-what-are-they\/","title":{"rendered":"Internet cookies, what are they?"},"content":{"rendered":"In order to unmask exactly what cookies are, it is important to first distinguish between a server computer and a client computer.\n\n<!-- \/wp:post-content -->\n\n<!-- wp:paragraph -->\n\nThe server computer is the computer where the site we are visiting is hosted.\nThe client computer is the computer we are using to access the site.\n\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n\nIt&#8217;s also important to know that every time we access a website, this link created is a new link for the purposes of the server computer.\n\nIn other words, in very simple terms, whenever our computer asks a server to show a page\/website, this connection\/request is always new and independent of previous connections.\n\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n\nThis is one of the defining characteristics of the <span style=\"color: #808080\">\n  <a style=\"color: #808080\" href=\"https:\/\/en.wikipedia.org\/wiki\/Hypertext_Transfer_Protocol\">http<\/a>\n<\/span>protocol, which is behind the Internet.\n\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n\nIn other words, the http protocol is stateless, it doesn&#8217;t maintain state, so the connection between the client computer and the computer is not maintained over time.\n\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n\nThis way, every time you visit a website again, for the purposes of the computer server, it&#8217;s as if you&#8217;re there for the first time and you&#8217;re a complete stranger who&#8217;s never been there before.\n\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n\nSo how do we solve this problem?\n\n<!-- \/wp:paragraph -->\n\n<!-- wp:html -->\n<h2 style=\"text-align: center;font-size: 140%;color: black\"><strong>This is where cookies come in!<\/strong><\/h2>\n<!-- \/wp:html -->\n\n<!-- wp:paragraph -->\n\nLet&#8217;s imagine the following scenario:\n\nWe go to an <span style=\"color: #808080\">\n  <a style=\"color: #808080\" href=\"https:\/\/www.amazon.com\/\">international e-commerce<\/a>\n<\/span> and abandon the site halfway through the process of buying a product.\n\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n\nLater, when we returned to the site, we were able to continue the process of buying the product we wanted, exactly where we were.\n\n<span style=\"font-size: 19px;letter-spacing: 0.3px\">The site also remembers which browsing language you have chosen.<\/span>\n\nBut how is this possible if the connections to the site&#8217;s server computer are stateless?\n\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n\nWhat actually happened when you visited the online shop for the first time was that the server sent a small file to your computer, which was stored in your web browser.\n\nThanks to this cookie, you can be recognized the next time you visit this same site by the server, and you won&#8217;t have to enter all your details again.\n\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n\nIn short, cookies customize and speed up your web experience.\n\n<!-- \/wp:paragraph -->\n\n<!-- wp:html -->\n<h2 style=\"text-align: center;font-size: 180%;color: black\">Advantages and disadvantages<\/h2>\n<!-- \/wp:html -->\n\n<!-- wp:paragraph -->\n\nOn the one hand, we love cookies because they make browsing easier and allow us to be recognized much more quickly on different websites.\n\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n\nOn the other hand, sometimes we may not like cookies that are used especially for sales or marketing purposes. In fact, certain cookies analyze our purchases or behavior, and the resulting information can then be analyzed and used as a marketing tool (e.g. Google Analytics).\n\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n\nOne of the few ways this server computer remembers who we are and where we were, is through the use of cookies that this server computer has installed on our computer (more specifically in our browser) and thus lets us continue where we were.\n\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n\nCookies are therefore packets of data sent by a website to the user&#8217;s browser when the user visits the website.\n\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n\nCookies allow websites\/servers to remember user information such as saved passwords, items added to the shopping cart in e-commerce stores, and more.\nThis makes navigation much easier and more efficient.\n\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n\nSo each time the user visits the site again, the browser sends the cookie back to the server to notify the user of the history of activity on that site.\n\n<!-- \/wp:paragraph -->\n\n<!-- wp:html -->\n<h2 style=\"text-align: center;font-size: 180%;color: black\">  Types of Cookies<\/h2>\n<!-- \/wp:html -->\n\n<!-- wp:paragraph -->\n\n<strong>Session cookies<\/strong>: Expire when you close your browser (or if you have been inactive for too long). A good example of this use is when we&#8217;re on a sales website so that we can continue browsing without losing the products we&#8217;ve already put in the cart.\n\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n\n<strong>Permanent<\/strong>: These persist even after we close the browser.\nThese are used to remember your passwords and login so you don&#8217;t have to re-enter them every time you re-enter a website.\n\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n\nAnother possible example is &#8220;reminding&#8221; the server of your preferred language for viewing the website.\n\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n\n<!-- wp:paragraph -->\n\n<strong>Third Party Cookies<\/strong>: Unlike usual, these cookies do not originate from the website where the user is located.\nThird-party cookies are created by other websites.\nSo the site the user is visiting contains content from a third-party site, such as advertisements, images, analytical tools, etc?\n\n<!-- \/wp:paragraph -->\n\nWe are interested in your experience with cookies.\n\nFor example: what bothers you about cookies, do you have a cookie control tool?\n\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n\nIf you liked this article, don&#8217;t forget to share it. Or if you&#8217;re interested in finding out more, visit my <a href=\"https:\/\/gabrielreis.pt\/en\/blog\/\">blog<\/a> or <a href=\"https:\/\/gabrielreis.com\/pt\/contactos\/\">contact me<\/a>.\n\n<!-- wp:paragraph -->\n\n<!-- \/wp:paragraph -->","protected":false},"excerpt":{"rendered":"<p>In order to unmask exactly what cookies are, it is important to first distinguish between a server computer and a client computer. The server computer is the computer where the site we are visiting is hosted. The client computer is the computer we are using to access the site. It&#8217;s also important to know that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":7406,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"page_builder":"","footnotes":""},"categories":[34],"tags":[],"class_list":["post-7565","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-design-en"],"acf":[],"_links":{"self":[{"href":"https:\/\/gabrielreis.pt\/en\/wp-json\/wp\/v2\/posts\/7565","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gabrielreis.pt\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gabrielreis.pt\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gabrielreis.pt\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gabrielreis.pt\/en\/wp-json\/wp\/v2\/comments?post=7565"}],"version-history":[{"count":3,"href":"https:\/\/gabrielreis.pt\/en\/wp-json\/wp\/v2\/posts\/7565\/revisions"}],"predecessor-version":[{"id":8442,"href":"https:\/\/gabrielreis.pt\/en\/wp-json\/wp\/v2\/posts\/7565\/revisions\/8442"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gabrielreis.pt\/en\/wp-json\/wp\/v2\/media\/7406"}],"wp:attachment":[{"href":"https:\/\/gabrielreis.pt\/en\/wp-json\/wp\/v2\/media?parent=7565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gabrielreis.pt\/en\/wp-json\/wp\/v2\/categories?post=7565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gabrielreis.pt\/en\/wp-json\/wp\/v2\/tags?post=7565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}