An internet cookie (HTTP cookie) is a small piece of data that a website stores in your browser. When you return to that site, the browser sends the cookie back, letting the server recognize you, maintain your login session, and remember your preferences.

Types of Cookies

Cookie TypePurposePrivacy Risk
Session cookiesMaintain your login during a visit; deleted when browser closesLow
Persistent cookiesRemember preferences and login across sessionsLow to medium
First-party cookiesSet by the website you are visitingLow
Third-party cookiesSet by advertisers and trackers embedded in the pageHigh - used for cross-site tracking
Secure cookiesOnly sent over HTTPS connectionsLow
HttpOnly cookiesInaccessible to JavaScript; prevents XSS theftVery low

Should You Accept Cookies?

First-party cookies are generally fine - they enable login sessions and shopping carts. Third-party cookies are tracking cookies used for advertising and are the main privacy concern. Most modern browsers now block third-party cookies by default (Firefox, Safari, Brave) or are phasing them out (Chrome).

Cookie Consent Banners

Under GDPR and similar laws, websites in many countries must ask for consent before setting non-essential cookies. You can generally click "Reject all" on these banners to decline tracking cookies while still using the site.

People Also Ask

What is a cookie on the internet?
A small text file stored in your browser that websites use to remember information about you, like your login status, shopping cart contents, and preferences.
Should I accept cookies?
Accept first-party (functional) cookies freely. Reject or limit third-party (advertising/tracking) cookies for better privacy. Most browser privacy settings can block third-party cookies automatically.

Related: Browser fingerprinting | Incognito mode | What your browser leaks