I thought that all expired cookies should be deleted automatically by the browser. but that is not the way it happens in my Firefox (same behaviour for different web-sites).
closing Firefox and even reboot of the computer don't help. the only way to remove expired cookies from Firefox is: by hand (which means I have to choose cookie in Privacy Tab of Firefox Options and press button 'Delete cookie').
well, the good news: expired cookies are ignored by the servers (tested with user script through my virtual server) but for unknown reason still continue to be stored idle in Firefox.
Is that the way it should work?
Solved! Go to Solution.
From the bug reports it seems that Firefox isn't removing expired cookies automatically. This will only happen if you exceed the maximum storage limit of 3000 cookies. Removing expired cookies seems to be something that would have to be done in idle time because doing it a startup or close down will affect the performance negatively.
Please do not comment in bug reports: https://bugzilla.mozilla.org/page.cgi?id=etiquette
You can vote to show your interest in getting the bug resolved: https://bugzilla.mozilla.org/page.cgi?id=voting.ht
It is possible that the cookies.sqlite file that stores the cookies is corrupted if clearing cookies doesn't work.
Rename (or delete) cookies.sqlite (cookies.sqlite.old) and delete other present cookies files like cookies.sqlite-journal in the Firefox profile folder in case the file cookies.sqlite got corrupted.
Are you closing the tabs with those websites before closing Firefox?
If you leave tabs open then Firefox stores the cookies in sessionstore.js as part of the session data.
my Firefox's default behaviour on start is to open home page, but not to restore previously opened tabs. so I don't thing it has somehting to do with sessionstore.js
Go to Tools >> Options >> Privacy >> in the option "Firefox will:" change to "Never Remeber History", restart Firefox, now the history isnt remeber anymore
You can clear the recent history:
That option that i said will delete automatically the cookie ever you close Firefox, then in the next time you start FIrefox, it will start with a new history cookies etc..
yes I did. I cleared cookies already and removed cookies.sqlite from profile directory. I will wait for a while and tell you if this solved my problem. but I still need my history to be remembered for future. without this every time I start Firefox I'll have to re-enter login and password to enter faceboook, youtube and other web-sites.
how about other settings for these web-sites (such as Language settings, for example, and other...)? if my history gets cleared every time I close Firefox, next time I'll have again to change these settings for each site. so, it's not the option. I still need Firefox to remember my history. the original question was: why expired cookies are not removed automatically? is that normal behavior?
You need to remove stored cookies when you make changes to the cookie setting under history. A new, changed, cookie setting only applies to newly created cookies and not to cookies that already exist. Those keep their current expiration setting.
Details like websites remembering you (log you in automatically) are stored in a cookie.
In case you are using "Clear history when Firefox closes":
Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.
Clearing cookies will remove all specified (selected) cookies including cookies with an allow exception that you would like to keep.