Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome doesn't delete session cookies

People also ask

Why are my cookies not deleting?

Moreover, if you try to remove the Google services cookies, the browser will automatically re-create them, making it impossible to remove data stored on Google servers. Thankfully, you can fix it by logging out of the Google services and then clearing out the browser history.

How do I clear my Chrome login session?

Go to the Application tab. On the right sidebar menu, go to Application > Clear storage. Uncheck everything but Local and session storage. Scroll to the very down and click Clear site data.

How do I destroy session cookies?

Description ¶ session_destroy() destroys all of the data associated with the current session. It does not unset any of the global variables associated with the session, or unset the session cookie. To use the session variables again, session_start() has to be called.


This can be caused by having Chrome set to Continue where you left off.

enter image description here

Further reading

  • Bug report: Chrome is not deleting temporary cookies – i.e. not logging me out automatically when I close all browser Windows
  • Issue 128513 in Chromium: Session Cookies not cleared when Chrome processes closed
  • Issue 128567: Session only cookies don't delete

I just had the same problem with a cookie which was set to expire on "Browsing session end".

Unfortunately it did not so I played a bit with the settings of the browser.

Turned out that the feature that remembers the opened tabs when the browser is closed was the root of the problem. (The feature is named "On startup" - "Continue where I left off". At least on the current version of Chrome).

This also happens with Opera and Firefox.


I just had this issue. I noticed that even after I closed my browser I had many Chrome processes running. Turns out these were each from my Chrome extension.

Under advanced settings I unchecked 'Continue running background apps when Google Chrome is closed' and my session cookies started working as they should.

Still a pain in the rear for all of us developers that have been coding expecting that session cookies would get cleared when the user is done browsing.


I had to both, unchecked, under advanced settings of Chrome :

  • 'Continue running background apps when Google Chrome is closed'
  • "Continue where I left off", "On startup"