Netlogic Consultancy and services LTD
As users, we’re bombarded daily with cookie consent banners. As InfoSec and IT professionals, we know those pop-ups are more than UI noise; they’re signals of a deeper, ongoing tension between data utility, user privacy, and regulatory compliance.
Cookies have become powerful tools for both functionality and surveillance. And as global privacy regulations tighten, failing to understand what cookies collect and how that data is handled can result in more than just a slap on the wrist.
This post unpacks the technical, legal, and privacy dimensions of website cookies, with a lens on GDPR, PDPA (Indonesia), CCPA, and what it all means for InfoSec practitioners. eum fugiat quo voluptas nulla pariatur.
What Exactly Are Cookies?
At their core, cookies are small text files stored in a user’s browser. Created by websites, they allow the site (or third parties) to store information about the user’s visit.
Types of cookies:
While they seem harmless, cookies can track behaviour across multiple websites and over long periods. That tracking becomes the foundation for behavioural profiling, targeted advertising, and even risk scoring, all without users truly understanding what’s being collected.
What Data Do Cookies Really Harvest?
Here’s the technical breakdown of data often harvested using cookies and associated scripts:
Third-party cookies often used for advertising or retargeting combine this data with off-site behaviour to build profiles that can include sensitive inferences: interests, financial status, health concerns, political leanings, and more.
Privacy Laws: Consent, Compliance & Consequences we should be aware of?

The General Data Protection Regulation requires explicit, informed consent for any cookies that process personal data, including analytics and advertising cookies.
GDPR is reinforced by the ePrivacy Directive, which focuses specifically on how data is stored/accessed on a user’s device making cookie compliance a dual obligation.
Sri Lanka’s Personal Data Protection Act, enacted in 2022, introduces a structured legal framework for processing personal data, including tracking via cookies. While enforcement has been phased in gradually, the law is now a key consideration for both public and private sector organisations operating in Sri Lanka.
Key principles relevant to cookies:
In essence, cookies that track or profile users beyond what is strictly necessary for functionality are covered under Sri Lanka’s PDPA, aligning it with global standards like GDPR.
The California Consumer Privacy Act takes a slightly different approach:
Unlike GDPR, CCPA does not require prior consent but still emphasises user control and transparency.
Even if you’re not in legal or compliance, cookie usage is your concern. Why?
InfoSec teams must treat cookie behaviour as part of their threat model, especially in high-privacy or regulated industries.
Here’s how InfoSec and IT teams can take control:
Secure, HttpOnly, and SameSite flags where applicablePrivacy by design isn’t a marketing slogan it’s a security architecture principle
Website cookies are where legal risk, technical complexity, and user trust collide. For InfoSec and IT professionals, they offer a unique challenge one that blends browser-level behavior with backend compliance systems.
Next time you see a cookie banner, look past the checkbox and ask yourself:
Who’s stealing your cookie… and what are they really doing with it?
Understanding the privacy implications of cookies and ensuring compliance with evolving data protection laws such as Sri Lanka’s PDPA, the GDPR, or CCPA requires more than technical know-how. It demands a clear, strategic approach rooted in legal awareness and risk management.
That’s where Netlogic Consultancy comes in.
We provide independent, expert advice to help organisations:
We do not implement technology, but we partner with your internal teams or chosen vendors to ensure that any technical solutions are strategically aligned, risk-informed, and legally sound.
With Netlogic Consultancy, you gain a trusted advisor on privacy, compliance, and responsible data use without the guesswork.