Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

For more information on how Google's third-party cookies operate and handle your data, see: Google Privacy Policy

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

#WebDev

How to Check Cookie Expiration Date in Chromium Browsers (Chrome, Edge, Opera…)

If you need a website or want to collaborate, contact me or find our more.

Author: Radu

Pay once, use forever—get huge lifetime software deals on ProductCanyon • Ad

On one of my websites, I swapped the cookie popup with a less annoying cookie banner. In the process, I also changed the JavaScript cookie code with a better one - taken from Stack Overflow, of course.

That code kept the cookie for 1 year. I wanted it for 90 days. So, I changed that part of the code, but I wanted to verify if I did it correctly and the cookie expiration date is indeed set to 90 days.

Here’s how I did it.

Many browsers, such as Chrome, Edge, Opera, etc., are based on Chromium, an open-source browser project. So, they’re very similar or even identical in many aspects.

Therefore, the steps I’m about to show you are the same for the major Chromium-based browsers: Chrome, Edge, Opera. I verified that. It should be the same if you’re using another Chromium-based browser.

Step 1

Right-click anywhere on a web page, on the website where you want to check the cookie expiration date.

Then, open up the developer tools by selecting Inspect or Inspect element, depending on the browser.

Step 2

Once the developer tools are up, select Application.

Step 3

On the left side, under the Storage section, you’ll see Cookies. Click on the arrow to display the website, then click on it.

This will display all sorts of information about cookies, including their expiration date in the Expires/Max-Age column.

Easy peasy lemon squeezy!

That’s a Wrap

If this post helped you, please consider following me on Bluesky or Instagram to support me.

Also, don't hesitate to contact me if you're interested in my web design services, want to collaborate, or just have something to say.

About Radu

I've been working online from home for over 11 years, gaining valuable experience and developing a wide range of skills, including web design and development, optimization, and SEO.

More posts