Chrome doesn't delete session cookies

cookies, google-chrome, javascript, session

Solution

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

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

Problem

I'm trying to set session cookie in javascript like this: ``` document.cookie = 'name=alex; path=/' ``` But Chrome doesn't delete it even if I quit browser and launch it again. I checked in Firefox and Opera and both work as intended - they delete session cookie on browser exit. Is Chrome just ignoring expiration rules? I checked in multiple OSes and found out that session cookie gets removed on Chrome in Windows XP and Ubuntu, but NOT in Mac OSX Lion.

Original source

Related problems