Other articles

  • How Long Can Cookies Last?
  • What are the Most Important Cookie Laws?
  • Are All Cookies the Same?
  • How are Cookies used?
  • What is a Clear GIF?
  • How to Opt-Out of Cookies?
  • How to Manage Cookies?
  • What is Website Visitor Tracking?
  • What are Cookies?

Knowledge base

Menu

  • Pricing
  • Features
    • Regulation compliance
    • GDPR (EU)
    • CCPA (California)
    • PIPEDA (Canada)
    • LGPD (Brasil)
    • KVKK (Turkey)
    • POPIA (South Africa)
    • The basics
    • 42 languages
    • User consents recording
    • Third-party cookie blocking
    • Geo targeting
    • Self-hosted code
    • Google Consent Mode v2
    • Automation
    • Automatic monthly scans
    • Automatic script blocking
    • Advanced reporting
    • Cookie Banner sharing
    • IAB TCF 2.2 integration
    • Google-certified CMP
  • Resources
    • Cookie Scanner
    • Privacy Policy Generator
    • System status
    • Roadmap
    • Changelog
  • Blog
    • Guides
    • News
    • GDPR & CCPA
    • Privacy laws
    • Compare
    • Knowledge base
  • Support
    • Help Center
    • Integrations
    • Contact us
    • Feature request
  • For partners
    • Agencies
    • Affiliates
  • separator
  • Language switcher
    • Profile
    • Billing
    • My plan
  • Sign in
  • Try now
Details
Last Updated: 02 April 2025

How Long Can Cookies Last?

Cookies can last as long as their creators want them to. The duration can be set when cookies are created. Depending on the type of cookie, cookies usually last from minutes to years.

Depending on how long cookies last on your browser, they are classified as session cookies or persistent cookies. 

Session cookies last only for the browser session and are deleted once you leave the web page or close the browser. 

Websites use persistent cookies to recognize your device, enhance website performance, create personalized ads, and optimize user experience for the next time you visit a website. Thus, persistent cookies are created to last longer: when you close the browser and open it up again, the cookie is still there. Persistent cookies can last for a year or longer.

While most privacy laws do not regulate the lifespan of cookies, the eprivacy Directive requires periodic renewals of Cookie Consent at least once a year. Thus, most persistent cookies also last for one year.

Read the article on how to view, enable, disable, or delete cookies in Chrome.

You can also use CookieScript Cookie Scanner to scan your website for free to see all your website cookies, local storage, and session storage in use:

 
  • About CookieScript
  • Terms of Service
  • Privacy Policy
  • Pricing
  • Resources
  • Cookie Scanner
  • Privacy Policy Generator
  • System status
  • Sitemap
  • Changelog
  • Alternatives
  • CookieBot
  • Termly
  • OneTrust
  • Iubenda
  • Cookie Information
  • CookieFirst
  • Illow
  • Blog
  • Guides
  • News
  • GDPR & CCPA
  • Privacy laws
  • Knowledge base
  • Support
  • Help center
  • Contact us
  • Integrations
  • Request a feature
  • Roadmap
  • For Partners
  • For agencies
  • For Affiliates

Copyright ©2025 CookieScript


main version