CINXE.COM
Types of Cookies | Cookiepedia
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Types of Cookies | Cookiepedia</title> <!-- Mobile viewport optimization h5bp.com/ad --> <meta name="HandheldFriendly" content="True"> <meta name="MobileOptimized" content="320"> <!-- Set mobile viewport --> <meta name="viewport" content="width=device-width"> <link href="/Content/css?v=B0KSx0bzjrqo1IWQZcPWVqp4BIw7EiweydpOZW5MSaw1" rel="stylesheet"/> <!--[if IE 8]> <script type="text/javascript" src="/Scripts/respond.min.js"></script> <![endif]--> <!--[if lte IE 8]> <link href="/Content/style-ie.css?v=0.1" rel="stylesheet" type="text/css" /> <![endif]--> <script src="/Scripts/jquery-3.5.1.js"></script> <script src="/Scripts/umd/popper.min.js"></script> <script src="/Scripts/bootstrap.min.js"></script> <!-- OneTrust Cookies Consent Notice start --> <script src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js" type="text/javascript" charset="UTF-8" data-domain-script="6e02977d-f56d-42f9-b8ec-570c9432f293"></script> <script type="text/javascript"> function OptanonWrapper(){} </script> <!-- OneTrust Cookies Consent Notice end --> <link rel="stylesheet" type="text/css" href="/Content/bootstrap.min.css" /> <link rel="stylesheet" type="text/css" href="/Content/bootstrap.css" /> <meta name="keywords"> <meta name="description" content="Cookies have many different uses, but they have a number of key attributes that are important to understand."> <meta name="google-site-verification" content="NJP9gmEpRN5uYEnMYcAflby5tYl8bBlV5vyO_fuAnq0" /> </head> <body class="subpage"> <script> $('.dropdown-submenu > a').on("click", function (e) { var submenu = $(this); $('.dropdown-submenu .dropdown-menu').removeClass('show'); submenu.next('.dropdown-menu').addClass('show'); e.stopPropagation(); }); $('.dropdown').on("hidden.bs.dropdown", function () { // hide any open menus when parent closes $('.dropdown-menu.show').removeClass('show'); }); </script> <div class="header1"> <nav class="navbar navbar-expand-lg navbar-dark bg-dark"> <a class="navbar-brand" href="/"> <img class="menu-logo" src="/Images/cookiepedia-logo.jpg" alt="Cookiepedia" /> </a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarSupportedContent"> <ul class="navbar-nav ml-auto"> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" href="/all-about-cookies#AllAboutCookie">All About Cookies</a> <ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink"> <li class="dropdown-item"><a href="/all-about-cookies">What are Cookies?</a></li> <li class="dropdown-item"><a href="/types-of-cookies">Types of Cookies</a></li> <li class="dropdown-item"><a href="/Content/OtherTrackingTechnologies">Online Tracking Technologies</a></li> <li class="dropdown-item"><a href="/benefits-of-cookies">The Benefits of Cookies</a></li> <li class="dropdown-item"><a href="/cookies-and-online-privacy">Cookies and Online Privacy</a></li> <li class="dropdown-item dropdown-submenu"> <a class="dropdown-toggle" data-toggle="dropdown" href="/how-to-manage-cookies#HowToManageCookies">How to Manage Cookies</a> <ul class="dropdown-menu"> <li class="dropdown-item"><a href="/how-to-manage-cookies#chrome">Google Chrome</a></li> <li class="dropdown-item"><a href="/how-to-manage-cookies#firefox">Firefox</a></li> <li class="dropdown-item"><a href="/how-to-manage-cookies#firefox-ios">Firefox (iOS)</a></li> <li class="dropdown-item"><a href="/how-to-manage-cookies#firefox-android">Firefox (Android)</a></li> <li class="dropdown-item"><a href="/how-to-manage-cookies#safari-desktop">Safari (Desktop)</a></li> <li class="dropdown-item"><a href="/how-to-manage-cookies#safari-mobile">Safari (Mobile)</a></li> <li class="dropdown-item"><a href="/how-to-manage-cookies#edge">Microsoft Edge</a></li> <li class="dropdown-item"><a href="/how-to-manage-cookies#ie">Internet Explorer</a></li> <li class="dropdown-item"><a href="/how-to-manage-cookies#opera">Opera</a></li> <li class="dropdown-item"><a href="/Content/ChromeUpdates">New Cookie Controls for Chrome</a></li> </ul> </li> <li class="dropdown-item"><a href="https://tcf.cookiepedia.co.uk" target="_blank">IAB Legal Text</a></li> </ul> </li> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" id="navbarDropdownMenuLink2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" href="/eu-cookie-law#EuCookiesLaw">EU Cookie Directive</a> <ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink2"> <li class="dropdown-item"><a href="/eu-cookie-law">EU Cookie Directive</a></li> <li class="dropdown-item"><a href="/cookie-laws-across-europe">Cookie Laws Across Europe</a></li> <li class="dropdown-item"><a href="/uk-cookie-law">Cookie Law in the UK</a></li> <li class="dropdown-item"><a href="/cookie-law-compliance-guidance">Cookie Law Compliance Guidance</a></li> <li class="dropdown-item"><a href="/giving-consent-to-cookies">Cookies Consent</a></li> <li class="dropdown-item"><a href="/how-to-complain-about-cookies">How To Complain About Cookies</a></li> </ul> </li> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" id="navbarDropdownMenuLink3" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" href="/about-cookiepedia#AboutCookiepedia">The Cookiepedia Database</a> <ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink3"> <li class="dropdown-item"><a href="/about-cookiepedia">About Cookiepedia</a></li> <li class="dropdown-item"><a href="/using-cookiepedia">Using Cookiepedia</a></li> <li class="dropdown-item"><a href="/classify-cookies">How We Classify Cookies</a></li> <li class="dropdown-item"><a href="/cookies-and-privacy-policy">Cookies and Privacy Policy</a></li> </ul> </li> <li class="nav-item visit-button"> <a style="color: #353a40 !important" href="https://kiosk.cookiepro.com/start-scan?source=cookiepedia" target="_blank" class="btn btn-outline-dark" id="button_Onetrust">Free Website Scan</a> </li> </ul> </div> </nav> </div> <div style="padding: 67px 10px 5px 20px;" class="row header-stripe"> <div class="inner-header-stripe"> <div class="search-box"> <div class="search-spacing"> </div> <form action="" method="GET" id="search-form"> <select name="search_option" id="search-type" class="round"> <option title="Enter Domain" selected>website</option> <option title="Enter Cookie Name">cookie</option> <option title="Enter Host Name">3rd party host</option> </select> <input class="search-box-input" name="search-box-input" type="text" id="search-query" placeholder="Enter Domain"> <input type="submit" value="Search" class="btn"> </form> </div> <div class="clear"></div> </div> </div> <div id="content"> <h1>Types of Cookies</h1> <div id="content-left"> <p>There are many different types and uses of cookies, but most can be classified in a number of different ways.</p> <h2>First Party Cookies</h2> <p>One of the key attributes of a cookie is its 'Host' - this is the domain name of the site that ultimately sets the cookie. Only the host domain can retrieve and read the contents of the cookie once it has been set.</p> <p>If the host name is the same as the domain in the browser address bar when it is set or retrieved, then it is a First Party Cookie.</p> <p>First party cookies are only set or retrieved by the website while you are visiting it, so they cannot normally be used to track activity or pass data from one site to another.</p> <p>However the owner of that website can still collect data through their cookies and use that to change how the website appears to the user, or the information it displays.</p> <p>Of course they can also collect the data and use it outside their website, and even sell it on to other organisations. However, if they do this it must be explained in the site's privacy policy.</p> <p>Most desktop browsers allow you to see a list of the cookies that have been set – and they will normally be listed by the host domain value.</p> <h2>Third Party Cookies</h2> <p>If the host domain for a cookie is different to the one in the browser bar when it was downloaded, then it is a third party cookie.</p> <p>They are usually placed in a website via scripts or tags added into the web page. Sometimes these scripts will also bring additional functionality to the site, such as enabling content to be shared via social networks.</p> <p>For example, if you visit a site that has a YouTube video in one of its pages. This has been included by the website owner, using a piece of code provided by YouTube. YouTube will then be able to set cookies through this code, and know that you have watched that video, or even just visited the page the video is in.</p> <p>Online advertising is the most common use of third party cookies. By adding their tags to a page, which may or may not display adverts, advertisers can track a user (or their device) across many of the websites they visit.</p> <p>This allows them to build up a 'behavioural profile' of the user, which can then be used to target them with online ads based around their 'calculated' interests.</p> <p>Use of cookies for this purpose is often seen as intrusive and an invasion of privacy. Such activity is one of the drivers behind the development of new privacy laws, especially the <a href="/eu-cookie-law">EU Cookie Law</a>.</p> <h2>Session Cookies</h2> <p>Session Cookies are only stored temporarily in the browser's memory, and are destroyed when it is closed down, although they will survive navigating away from the website they came from.</p> <p>If you have to login to a website every time you open your browser and visit it - then it is using a session cookie to store your login credentials.</p> <p>Many websites use session cookies for essential site functions, and to make sure pages are sent to the browser as quickly and efficiently as possible.</p> <div class="container" style="position:relative; padding:0px"> <img class="adv-rectangle" src="/Images/cookiepro-adv-rectangle.png" /> <a style="position:absolute;" href="https://www.cookiepro.com/cookie-consent/" target="_blank" class="btn">Sign Up for Free</a> </div> <h2>Persistent Cookies</h2> <p>As the name suggests, this type of cookie is saved on your computer so that when you close it down and start it up again, it can still be there.</p> <p>Persistent cookies are created by giving them an expiry date. If that expiry date is reached, it will be destroyed by the computer. If the expiry date is not set then it is automatically a session cookie.</p> <p>The expiry date will normally be saved as the time the cookie was first created plus a number of seconds, determined by the programmer who wrote the code for the cookie. However, there is no real limit on the expiry date - so it could be set to be 20 years in the future. In addition, if you revisit the website that served up the cookie, it may automatically place an updated version on your computer - with a revised future expiry date.</p> <p>If you login into a website, then shut down your computer, start it up again, and go back to the website to find you are still logged in - then it is using a persistent cookie to remember you.</p> <p>Persistent cookies are also used to track visitor behaviour as you move around a site, and this data is used to try and understand what people do and don't like about a site so it can be improved. This practice is known as Web Analytics. Since Google started providing its own analytics technology free of charge to website owners, almost all websites use some form of it - although there are also paid-for services available to rival Google's.</p> <p>Analytics cookies are probably the most common form of persistent cookies in use today.</p> <p>However, persistent cookies can also, oddly, have a shorter life span than some session cookies, as they can be coded to be destroyed within a second or two of being set, whereas a session cookie will always last until you close down your browser.</p> <h2>Secure Cookies</h2> <p>Secure cookies are only transmitted via HTTPS - which you will typically find in the checkout pages of online shopping sites.</p> <p>This ensures that any data in the cookie will be encrypted as it passes between the website and the browser. As you might imagine – cookies that are used by e-commerce sites to remember credit card details, or manage the transaction process in some way, would normally be secure, but any other cookie might also be made secure.</p> <h2>HTTPOnly Cookies</h2> <p>When a cookie has an HTTPOnly attribute set, the browser will prevent any client script in the page (like JavaScript) from accessing the contents of the cookie.</p> <p>This protects it from so-called cross-site-scripting (XSS) attacks, where a malicious script tries to send the content of a cookie to a third party website.</p> </div> <div id="content-right"> <div class="side-bar"> <h3>All About Cookies</h3> <ul> <li class=""><a href="/all-about-cookies">What Are Cookies?</a></li> <li class="current"><a href="/types-of-cookies">Types of Cookies</a></li> <li class=""><a href="/Content/OtherTrackingTechnologies">Online Tracking Technologies</a></li> <li class=""><a href="/benefits-of-cookies">The Benefits of Cookies</a></li> <li class=""><a href="/cookies-and-online-privacy">Cookies and Online Privacy</a></li> <li class=""><a href="/how-to-manage-cookies">How to Manage Cookies</a> <ul class="sub"> <li class="side-six-sub" ><a href="/how-to-manage-cookies#chrome">Google Chrome</a></li> <li class="side-six-sub" ><a href="/how-to-manage-cookies#firefox">Firefox</a></li> <li class="side-six-sub" ><a href="/how-to-manage-cookies#firefox-ios">Firefox (iOS)</a></li> <li class="side-six-sub" ><a href="/how-to-manage-cookies#firefox-android">Firefox (Android)</a></li> <li class="side-six-sub"><a href="/how-to-manage-cookies#safari-desktop">Safari (Desktop)</a></li> <li class="side-six-sub"><a href="/how-to-manage-cookies#safari-mobile">Safari (Mobile)</a></li> <li class="side-six-sub"><a href="/how-to-manage-cookies#edge">Microsoft Edge</a></li> <li class="side-six-sub"><a href="/how-to-manage-cookies#ie">Internet Explorer</a></li> <li class="side-six-sub"><a href="/how-to-manage-cookies#opera">Opera</a></li> <li class="side-six-sub"><a href="/Content/ChromeUpdates">New Cookie Controls for Chrome</a></li> </ul> </li> <li class="dropdown-item"><a href="https://tcf.cookiepedia.co.uk" target="_blank">IAB Legal Text</a></li> </ul> </div> <div class="container" style="position:relative; padding:0px"> <img style="width:100%;" src="/Images/cookiepro-adv-squate.png" /> <a style="position:absolute; top: 90%; left: 48%; transform: translate(-50%, -50%);" href="https://www.cookiepro.com/cookie-consent/" target="_blank" class="btn">Sign Up for Free</a> </div> </div> <div class="clear"></div> </div> <div class="footer"> <div class="row section1" id="footer-row"> <div class="inner-row"> <div class="left-50 "> <div class="left-50-subsec"> <img class="cookiepro-logo" src="/Images/cookiepro.png" /> <br> <span id="add-head"> Simplify compliance with ePrivacy and GDPR </span> <div class="add-item"> <ul class="list-item list-1 d-inline-block"> <li> Cookie Banner </li> <li> Cookie Notice </li> <li> Website Scanner </li> </ul> <ul class="list-item list-2 d-inline-block"> <li> Cookie Preferences </li> <li> Records of Consent </li> <li> Do not Track </li> </ul> </div> <a href="https://www.cookiepro.com/cookie-consent/" target="_blank" class="btn">Sign Up for Free</a> <br /> <span class="add-subhead"> Get started for free. Upgrade anytime. </span> </div> </div> <div class="right-50"> <img class="cookiepro" src="/Images/desktop.png" /> </div> </div> </div> <div class="row section2 justify-content-between align-items-center"> <div class="menu-footer-logo justify-content-between"> <a class="d-sm-block d-lg-inline" href="/"> <img class="menu-logo navbar-brand mr-lg-3 " src="/Images/cookiepedia-logo.jpg" alt="Cookiepedia" /> </a> <div class="policy d-sm-block d-lg-inline">© 2020 Cookiepedia. All Rights Reserved.</div> </div> <div class="menu-copyright-container justify-content-between"> <ul class="menu"> <li class="footer-menu"><a href="/cookies-and-privacy-policy">Cookie Notice</a></li> | <li class="footer-menu"><a href="/Content/PrivacyNotice">Privacy Notice</a></li> | <li class="footer-menu"><a href="/Content/TermsOfUse">Terms of Use</a></li> | <li class="footer-menu"><a href="/Contact">Contact Us</a></li> </ul> </div> </div> </div> <script src="/bundles/jquery?v=cHJ7I2AOdHk-74hVj8jp_f-dkg_DmjGVhY1C06bidLE1"></script> <script src="/bundles/jqueryplugs?v=Aak-V_kOCiljCZVCgIvaBiMxEK6M4vnovVppE07L7iU1"></script> <script type="text/javascript" src="/Scripts/internal.js"></script> </body> </html>