How often does a website have to ask for cookie consent?
<p>I'm working on a website that requires cookie consent because of the GDPR. After the user agrees to storing cookies, the browser will store this data for 10 years. Using another browser, device, or clearing their cookies will reset this timer. </p>

<p>10 years is a completely arbitrary number that I came up with, but I was wondering if the GDPR has any specific guidelines on how often the website should ask for cookies. </p>

<p>If you are storing data on the user then you need a lawful basis. The GDPR <a href="https://ico.org.uk/for-organisations/guide-to-data-protection/guide-to-the-general-data-protection-regulation-gdpr/lawful-basis-for-processing/" rel="nofollow noreferrer">provides several</a>, of which "consent" is only one.</p>

<p>You don't actually need a GDPR basis to store cookies on the user's computer. However if those cookies identify the user or store personal data then you <em>do</em> need a GDPR basis to do any processing on those cookies at your end. The typical situation is that you put a cookie containing a user ID on the user's computer, and back on your server there is a database which is keyed by that user ID. That way whenever the user comes back to your site you can match them to the database records. I'll assume this is the architecture you are using.</p>

<p>(The alternative scenario is that the cookies contain only user settings which are not tied to any data at your end, in which case you don't need to worry about the GDPR).</p>

<p>You need to consider each piece of processing you want to do with the user data and establish a lawful basis for it. <a href="https://ico.org.uk/for-organisations/guide-to-data-protection/guide-to-the-general-data-protection-regulation-gdpr/accountability-and-governance/documentation/" rel="nofollow noreferrer">This needs to be written up</a>. Once you have established the lawful basis you will be able to determine how long you can keep the user data. D<a href="https://ico.org.uk/for-organisations/guide-to-data-protection/guide-to-the-general-data-protection-regulation-gdpr/principles/data-minimisation/" rel="nofollow noreferrer">ata minimisation</a> is an important principle in GDPR.</p>

<p>Consent is <a href="https://ico.org.uk/for-organisations/guide-to-data-protection/guide-to-the-general-data-protection-regulation-gdpr/lawful-basis-for-processing/consent/" rel="nofollow noreferrer">actually the weakest</a> of the lawful bases for processing, so you should try to establish one of the others first. If you do need consent for some of the processing then its important not to try to nudge the user into giving consent: pre-checked tick boxes and hidden opt-out forms don't count as consent.</p>

<p>Neither the GDPR or the <a href="https://en.wikipedia.org/wiki/Privacy_and_Electronic_Communications_Directive_2002" rel="nofollow noreferrer">EPrivacy Directive</a> specify any duration. However, on 1 October 2019 the <a href="https://en.wikipedia.org/wiki/Court_of_Justice_of_the_European_Union" rel="nofollow noreferrer">CJEU</a> ruled in Case <a href="http://curia.europa.eu/juris/document/document.jsf?text=&amp;docid=218462&amp;pageIndex=0&amp;doclang=EN&amp;mode=req&amp;dir=&amp;occ=first&amp;part=1&amp;cid=1438506" rel="nofollow noreferrer">C‑673/17</a> (Verbraucherzentrale Bundesverband vs. Planet49 GmbH) that users must be informed of the duration before they consent to store cookies:</p>

<blockquote>
  <ol start="78">
  <li><p>Although the duration of the processing of the data is not included as part of that information, it is, however, clear from the words ‘at least’ in Article 10 of Directive 95/46 that that information is not listed exhaustively. Information on the duration of the operation of cookies must be regarded as meeting the requirement of fair data processing provided for in that article in that, in a situation such as that at issue in the main proceedings, a long, or even unlimited, duration means collecting a large amount of information on users’ surfing behaviour and how often they may visit the websites of the organiser of the promotional lottery’s advertising partners.</p></li>
  <li><p>That interpretation is borne out by Article 13(2)(a) of Regulation 2016/679, which provides that the controller must, in order to ensure fair and transparent processing, provide the data subject with information relating, inter alia, to the period for which the personal data will be stored, or if that is not possible, to the criteria used to determine that period.</p></li>
  </ol>
</blockquote>

<p>So you can store the cookie forever, if you inform the user about the duration before they consent to storing cookies. As consent must be 'freely given', they can refuse if they don't accept that. </p>

<p>Cookies are tools that process Personal Data and under GDPR Processing requires a Lawful Base.</p>

<p>Accepting the Cookies Policy will still mean that the user may opt-out from some Cookies being used to process his/ her Personal Data... so "accept Cookies Policy and that's it" is not a valid approach.</p>

<p>Personal Data Processing derives from "Purpose" and "Scope" under a Lawful Base and Services are finite, so you MUST erase the information gathered by Cookies once the Service ceases if there is no Legal Obligation to maintain it (ususally there is not, in opposition to let's say invoices that must be kept for 7 years but do not derive from Cookies Processing).</p>

<p>10 years for Cookies really seems way too much... it is not arbitrary, it MUST derive from the "need to process", having the DAta Subject aware of it and always enabling him/ her to opt-out.</p>

<p>Your Cookies Policy needs to detail WHAT each Cookie does and their relevancy towards the Services being rendered.</p>

<p>Some Cookies may act as Service enablers, therefore you need to explain that if the user opts-out from those, he/ she may not get the service that was contracted or expected.</p>

<p>Other Cookies are relevant for you as a company (e.g. Google Analytics), so the user (Data Subject) may really opt-out at any time, for there is no impact in the Service towards him/ her.</p>

<p>Then you may have Cookies that profile the user... well, regarding those you better comeup with a good explanation on why the user will hugely benefit from them... people is getting scared by the day, and opting out from anything that "smells" like "profiling".</p>

<p>If you are a developer, you should really get support from someone who knows about GDPR and not try to do your best, for ... well... do not take this wrong but odds are you will not do an assertive job.</p>

<p>Retention Period under GDPR... (39) ensuring that the period for which the personal data are stored is limited to a strict minimum. + (45) disclose (...) the storage period + (61) + (65) Data Subject has the ‘right to be forgotten’ where the retention of such data infringes this Regulation + Article 5 (e) + Article 6 (3) (b) + several more...</p>

gdpr