Skip to content
Free website migration on every plan, done by our team.Learn more ›
Privacy

What are website cookies, and do I need a cookie banner?

What website cookies are, the different types, what they're used for, how privacy laws treat them and when your website needs a cookie notice.

Short answer: Cookies are small text files a website stores in your browser to remember things: that you're logged in, what's in your cart, your language, or, for analytics and ads, how you use the site. Essential cookies make the site work and don't need consent. Analytics and advertising cookies usually need visitors' consent under laws such as the GDPR and Nigeria's NDPA, which is why many sites show a cookie notice.

Cookies are behind many everyday conveniences online. They're also how visitors are tracked across websites, which is why privacy laws regulate them.

What cookies do

PurposeExampleConsent usually needed?
EssentialKeeping you logged in, remembering your cart, securityNo
PreferencesRemembering your language, currency or themeOften not, if strictly for a feature you asked for
AnalyticsCounting visitors and pages viewedUsually yes, unless anonymous and privacy-friendly
AdvertisingShowing ads based on your browsing, across sitesYes

First-party and third-party cookies

  • First-party cookies are set by the website you're visiting, such as your shopping cart.
  • Third-party cookies are set by other companies whose code runs on the page, such as ad networks or embedded videos. Browsers such as Safari and Firefox block many of these by default.

Session and persistent cookies

  • Session cookies disappear when you close the browser.
  • Persistent cookies stay until they expire or you delete them.

Similar technologies

Websites can also store data with browser storage (such as localStorage), tracking pixels and device fingerprinting. Privacy laws generally treat these like cookies when they're used to track people.

You likely need one if your site:

  • uses analytics such as Google Analytics;
  • shows ads or uses advertising pixels, such as Meta or Google Ads tags;
  • embeds content that sets tracking cookies, such as some video or social media widgets;
  • has visitors from the EU, UK or Nigeria, where consent rules apply.

You may not need one if you only use essential cookies and privacy-friendly analytics that don't track individuals. See privacy-friendly analytics.

  1. Explains briefly what you use and why.
  2. Lets visitors accept or reject non-essential cookies equally easily.
  3. Doesn't load analytics or advertising cookies until the visitor agrees.
  4. Lets visitors change their mind later.
  5. Links to your privacy policy. See website privacy policy.

See cookie consent banners, NDPA compliance for websites and GDPR and hosting.

How to see a website's cookies

In Chrome or Edge, open the page, press F12, go to Application → Cookies. In Firefox, use Storage → Cookies. You'll see each cookie's name, domain and expiry date.

Frequently asked questions

Are cookies dangerous?

Cookies can't run code or install viruses. The concern is privacy: tracking cookies can build a picture of what you do across websites.

Should I accept cookies?

Accepting essential cookies is needed for sites to work. For analytics and advertising cookies, it's your choice. Rejecting them shouldn't stop the site from working.

What happens if I clear my cookies?

You'll be logged out of websites and lose saved preferences and carts. Sites will set new cookies on your next visit.

Does the AuroxHost website use cookies?

First-time visitors see a short cookie notice where they can make their choice. Details are in our privacy policy.

Ready when you are

Host it where it performs

NVMe speed, offshore privacy and a written SLA — live in minutes on AuroxHost.