Overview
The ePrivacy Directive (Directive 2002/58/EC, CELEX 32002L0058, amended in 2009 by Directive 2009/136/EC) protects privacy in electronic communications. It is best known as the “Cookie Directive”: its Article 5(3) is the legal basis for cookie banners across the EU. It also governs confidentiality of communications, traffic and location data and electronic direct marketing.
As a directive, it applies through national law: in Germany the TDDDG (formerly TTDSG), in Austria the TKG 2021. Switzerland has its own, less strict rule in the Telecommunications Act (FMG).
Article 5(3): The Cookie Rule
The core of Article 5(3), as amended in 2009, reads:
“Member States shall ensure that the storing of information, or the gaining of access to information already stored, in the terminal equipment of a subscriber or user is only allowed on condition that the subscriber or user concerned has given his or her consent, having been provided with clear and comprehensive information […] about the purposes of the processing.”
Two exemptions follow. Consent is not required for technical storage or access
- for the sole purpose of carrying out the transmission of a communication over an electronic communications network, or
- that is strictly necessary for a provider of an information society service explicitly requested by the user to provide that service.
What falls under Article 5(3)?
Article 5(3) is technology-neutral. It covers any storing of or access to information on a device, including:
- Cookies (first- and third-party)
- Local storage and session storage
- Tracking pixels and URL-based tracking that triggers storage or access on the device
- Device fingerprinting
- SDKs and identifiers in mobile apps
- IoT devices and connected cars
The EDPB set out this broad reading in Guidelines 2/2023 on the technical scope of Art. 5(3). It does not matter whether the information is personal data – the CJEU confirmed this in Planet49 (C-673/17).
Strictly necessary vs. consent required
| Usually strictly necessary (no consent) | Consent required |
|---|---|
| Session cookies for shopping cart and checkout | Web analytics with identifiers (e.g. Google Analytics) |
| Login and authentication cookies | Advertising, retargeting and conversion tracking |
| Security cookies (e.g. fraud prevention, CSRF) | Social media plugins and embeds that set cookies |
| Load balancing | A/B testing and personalisation |
| Storing the user’s consent choice and language preference | Cross-site tracking and fingerprinting |
The test is narrow: a cookie is only strictly necessary if the service the user explicitly requested cannot work without it. Being useful for the operator – for statistics, marketing or optimisation – is not enough. Some national regulators accept privacy-friendly, cookieless audience measurement without consent; this depends on the country and the set-up.
Requirements for valid consent
Consent under Article 5(3) follows the GDPR standard (Art. 4(11) and 7 GDPR):
- Freely given – refusing must be as easy as accepting; regulators in Germany and Austria expect a “reject” option on the first layer of the banner
- Specific – separate consent per purpose, not one blanket “accept”
- Informed – purposes, providers and storage period explained before consent
- Unambiguous, active action – no pre-ticked boxes, no “by continuing to browse you agree”
- Before the cookie is set – no tracking cookies on page load
- Withdrawable at any time, as easily as it was given
- Documented – the operator must be able to prove consent
National Implementation in DACH
| Germany | Austria | Switzerland | |
|---|---|---|---|
| Law | § 25 TDDDG (formerly TTDSG) | § 165(3) TKG 2021 | Art. 45c FMG |
| Principle | consent required | consent required | information and right to object (opt-out) |
| Exemptions | transmission; strictly necessary for an explicitly requested service | transmission; strictly necessary for an explicitly requested service | – |
| Supervisory authority | Federal and state data protection authorities | Data Protection Authority (DSB) | FDPIC |
| Fines | up to EUR 300,000 (TDDDG), plus GDPR fines | under TKG 2021, plus GDPR fines | – |
Germany: § 25 TDDDG has transposed Article 5(3) almost word for word since December 2021. The law was renamed from TTDSG to TDDDG on 14 May 2024 in connection with the Digital Services Act; the content of § 25 remained unchanged. The Federal Court of Justice had already ruled in 2020 (Cookie-Einwilligung II) that tracking cookies require active consent.
Austria: § 165(3) TKG 2021 contains the cookie rule. The Data Protection Authority enforces it together with the GDPR and has repeatedly objected to banners without an equivalent “reject” option.
Switzerland: Art. 45c FMG requires that users are informed about the processing and its purpose and told how to refuse it. There is no prior consent requirement. Swiss operators targeting users in the EU must nevertheless meet the EU rules.
Other Obligations of the Directive
- Confidentiality of communications (Art. 5(1)): no listening, tapping or storage of communications without consent
- Traffic and location data (Art. 6 and 9): only with consent or for billing and transmission purposes
- Direct marketing (Art. 13): email, SMS and automated calls only with prior consent – except the “soft opt-in” for similar products to existing customers with an easy opt-out
- Calling line identification (Art. 8): users can suppress their number
- Subscriber directories (Art. 12): inclusion only with information and the right to object
- Security and data breaches (Art. 4): providers of electronic communications services must secure their services and report breaches
Outlook: ePrivacy Regulation and Digital Omnibus
- ePrivacy Regulation withdrawn: The 2017 proposal for an ePrivacy Regulation was meant to replace the directive with directly applicable rules. After years without agreement in the Council, the Commission announced its withdrawal in its 2025 work programme.
- Digital Omnibus (proposal of November 2025): The Commission proposed moving the rules for accessing personal data on devices from Article 5(3) into the GDPR and adding exemptions, for example for aggregated audience measurement. As of October 2026, the proposal was still being negotiated in the Council and Parliament, and its cookie provisions were contested.
- What applies now: Article 5(3) and the national laws (TDDDG, TKG 2021) remain fully applicable until a new law is adopted and takes effect.
Related Regulations
The GDPR governs any further processing of personal data collected via cookies. The Digital Services Act bans dark patterns on online platforms and restricts targeted advertising based on sensitive data and to minors. The Digital Markets Act requires gatekeepers to obtain consent before combining personal data across services.
Legal Sources
- Directive 2002/58/EC concerning the processing of personal data and the protection of privacy in the electronic communications sector (ePrivacy Directive) EUR-Lex
- TDDDG – Telecommunications Digital Services Data Protection Act (§ 25 on cookies), formerly TTDSG DE In force since 01.12.2021, renamed 14.05.2024
- TKG 2021 – Telecommunications Act 2021 (§ 165(3) on cookies) AT In force since 01.11.2021
- FMG – Telecommunications Act (Art. 45c: information and right to object, no consent requirement) CH
Frequently Asked Questions
What does Article 5(3) of the ePrivacy Directive say?
Storing information on a user's device or accessing information already stored there is only allowed with the user's consent, after clear and comprehensive information about the purposes. Consent is not needed for storage or access solely to transmit a communication, or that is strictly necessary to provide a service the user explicitly requested.
Which cookies are strictly necessary?
Cookies without which a service the user explicitly requested cannot work: for example session cookies for a shopping cart or login, load balancing, security cookies and cookies that store the user's consent choice. Analytics, advertising, social media and A/B testing cookies are not strictly necessary.
Does Article 5(3) only apply to cookies?
No. It applies to any storing of or access to information on the device: cookies, local storage, tracking pixels, device fingerprinting, SDKs in apps and similar techniques. The EDPB confirmed this broad scope in Guidelines 2/2023.
Does Article 5(3) apply if no personal data is involved?
Yes. The CJEU ruled in Planet49 (C-673/17) that consent is required regardless of whether the information stored or accessed is personal data. If personal data is processed, the GDPR applies in addition.
How must cookie consent be obtained?
Consent follows the GDPR standard: freely given, specific, informed and unambiguous, through an active action. Pre-ticked boxes or continued browsing are not valid consent (CJEU, Planet49). Refusing must be as easy as accepting, and consent must be as easy to withdraw as to give.
How does the ePrivacy Directive relate to the GDPR?
The ePrivacy Directive is lex specialis for access to terminal equipment and electronic communications. Whether a cookie may be set is decided by Article 5(3) and the national law transposing it; the subsequent processing of personal data collected through it must also comply with the GDPR.
Will the ePrivacy Directive be replaced?
The proposed ePrivacy Regulation of 2017 was withdrawn by the Commission in 2025 because no agreement was in sight. The Digital Omnibus proposed in November 2025 would move the cookie rules for personal data into the GDPR, but it was still under negotiation in October 2026. Until anything is adopted, Article 5(3) and the national laws continue to apply.
Do Swiss websites need cookie consent?
Swiss law (Art. 45c FMG) only requires informing users about cookies and their purpose and telling them how to refuse. Swiss websites that target users in the EU must, however, meet the EU consent requirements.