Read more

PSA: Chrome and Firefox do not always clear session cookies on exit

Arne Hartherz
September 26, 2014Software engineer at makandra GmbH

Cookies without an expiration timestamp are called "session cookies". [1] They should only be kept until the end of the browsing session.

Illustration web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
Read more Show archive.org snapshot

However, when Chrome or Firefox are configured to reopen tabs from last time upon start, they will keep session cookies when closing the browser. This even applies to tabs that were closed before shutting down the browser.

This is by design in Chrome Show archive.org snapshot and Firefox Show archive.org snapshot , has been like that for quite a while now and it seems they won't change their mind.


[1] We are not talking about the the Rails session cookie here, though it often is a session cookie.

Posted by Arne Hartherz to makandra dev (2014-09-26 13:48)