What Are Cookies? Meaning, Definition and Types
What is a cookie? A small piece of data a website stores in your browser so it can remember you. Here is the meaning of cookies, why they are called cookies, each type, what "Accept cookies" means, which need consent, and the meaning in Bengali.

⚡ Key Takeaways
- •Cookies meaning: small text files a website stores in your browser and reads back on later visits, so it can remember you.
- •Strictly necessary cookies usually need no consent; analytics and advertising cookies usually do.
- •A cookie banner has to hold optional cookies until the visitor chooses, and keep a record of the choice.
Types of cookies by who sets them and how long they last
Two questions describe any cookie: whose domain set it, and when it expires.
- ✓First-party cookies are set by the site you are visiting, for logins, carts and its own analytics.
- ✓Third-party cookies are set by another domain loaded on the page, such as an ad network, a video embed or a chat widget. Chrome still allows them by default, Safari blocks them by default and Firefox keeps them isolated to each site.
- ✓Session cookies have no expiry date and are deleted when the browsing session ends, although browsers that restore sessions on restart can keep them longer.
- ✓Persistent cookies are deleted on the date set in their Expires attribute or after their Max-Age period, which can be months or years.
Types of cookies by what they do
Cookie banners group cookies by purpose, because consent rules depend on purpose, not on the file:
- ✓Strictly necessary: security, load balancing, logins and carts. The site breaks without them.
- ✓Preferences: language, region and display settings the visitor chose.
- ✓Analytics: counting visits and measuring how people use the site, such as Google Analytics.
- ✓Marketing and advertising: pixels and IDs that track visitors across sites to target or measure ads, such as the Meta pixel.
When cookies need consent
In the EU and UK, cookies that are not strictly necessary need consent before they are set, and GDPR defines valid consent as freely given, specific, informed and unambiguous. In California, CCPA gives people the right to opt out of their data being sold or shared, and cookies used for cross-site advertising usually count as sharing. In Bangladesh, the Bangladesh PDPA 2026 (Personal Data Protection Act, 2026) requires consent that is voluntary, specific, clear and withdrawable before personal data is processed, unless another lawful basis applies (s.5).
The practical rule is the same in all three: analytics and advertising cookies should wait for a choice, and strictly necessary ones can load straight away.
Cookie consent tools for Bangladeshi websites
FrithX is a cookie consent and privacy compliance platform built for Bangladesh's Personal Data Protection Act, 2026. Its Consent Cloud shows an opt-in banner, in Bangla if you choose, holds tagged trackers until the visitor answers, and keeps a log of every choice as the proof of consent the Act asks for (s.5(4)).
Whichever tool you use, check four things: it blocks optional trackers before the visitor chooses, rejecting is as easy as accepting, the banner can be shown in Bangla, and every choice is logged with its time, banner version and the law that applied.
See which cookies your own site sets
Most sites set more cookies than their owners know about, because plugins and marketing tools add them without a code change. The free FrithX privacy scan loads your site the way a first-time visitor does and lists every cookie and tracker it sets, in under a minute, with no sign-up.
Questions people ask
Is it safe to accept cookies?
Cookies cannot run code or install anything, so accepting them is not a security risk in itself. Optional cookies do let companies follow your browsing across sites, so accept the ones you are comfortable with and reject advertising cookies if you would rather not be tracked.
What happens if I reject cookies?
The site should still work. Strictly necessary cookies, such as login and cart cookies, keep running; analytics and advertising cookies should not be set. You may see the banner again later, and some sites show less personalised content.
Are cookies a virus?
No. A cookie is a small text file the browser stores. It cannot run code, read your files or spread to other devices.
What are cookies on a computer?
They are the same cookies: small text files your web browser saves on the computer for each site you visit. They live inside the browser, not elsewhere on the computer, so each browser keeps its own set and clearing them in one browser leaves the others untouched.
Should you delete cookies?
Deleting cookies now and then removes tracking IDs and frees a little space, but it also signs you out of sites and resets their settings. Many people delete third-party cookies or block them in the browser and keep first-party ones, so logins and carts keep working.
Do cookies store my password?
A well-built site never stores your password in a cookie. It stores a random session ID instead, which is why a stolen session cookie can still let someone into your account until it expires or you log out.
কুকি মানে কী?
কুকি হলো ছোট একটি টেক্সট ফাইল, যা ওয়েবসাইট আপনার ব্রাউজারে রাখে যাতে আপনাকে মনে রাখতে পারে: লগইন, কার্ট বা ভাষা। অ্যানালিটিক্স ও বিজ্ঞাপনের কুকির জন্য সাধারণত আপনার সম্মতি লাগে।
Subscribe to FrithX Monthly Intelligence
Get practical privacy, zero-trust, and AI governance checklists delivered straight to your inbox.
Subscribe for Free →


