X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

firefox doesn't remove expired cookies

Posted

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?

Chosen 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.


  • Bug 576347 - Periodically purge expired cookies and vacuum db

Please do not comment in bug reports: https://bugzilla.mozilla.org/page.cgi?id=etiquette.html
You can vote to show your interest in getting the bug resolved: https://bugzilla.mozilla.org/page.cgi?id=voting.html.

Read this answer in context 1
Post a Reply

Additional System Details

Installed Plug-ins

  • Shockwave Flash 11.9 r900

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0

More Information

Сведения о приложении
---------------------
Имя: Firefox
Версия: 26.0
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0
Расширения
----------
Имя: Adblock Plus
Версия: 2.4
Включено: true
ID: {d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}
Имя: Scriptish
Версия: 0.1.11
Включено: true
ID: scriptish@erikvold.com
Имя: Adobe Acrobat - Create PDF
Версия: 2.0
Включено: false
ID: web2pdfextension@web2pdf.adobedotcom
Важные изменённые настройки
---------------------------
accessibility.typeaheadfind.flashBar: 0
browser.cache.disk.capacity: 358400
browser.cache.disk.smart_size.first_run: false
browser.cache.disk.smart_size.use_old_max: false
browser.cache.disk.smart_size_cached_value: 358400
browser.places.smartBookmarksVersion: 4
browser.sessionstore.upgradeBackup.latestBuildID: 20131205075310
browser.startup.homepage_override.buildID: 20131205075310
browser.startup.homepage_override.mstone: 26.0
dom.allow_scripts_to_close_windows: true
dom.mozApps.used: true
extensions.lastAppVersion: 26.0
font.internaluseonly.changed: true
gfx.direct3d.last_used_feature_level_idx: 1
network.cookie.prefsMigrated: true
places.database.lastMaintenance: 1389772226
places.history.expiration.transient_current_max_pages: 104858
plugin.disable_full_page_plugin_for_types: application/pdf
plugin.importedState: true
plugin.state.npadobeaamdetect: 0
plugin.state.npauthz: 0
plugin.state.nppdf: 0
plugin.state.npspwrap: 0
privacy.sanitize.migrateFx3Prefs: true
storage.vacuum.last.index: 1
storage.vacuum.last.places.sqlite: 1389113975
Графика
-------
Direct2D включён: true
DirectWrite включён: true (6.2.9200.16571)
GPU #2 активен: false
windowLayerManagerRemote: false
Аппаратно ускоренные окна: 1/1 Direct3D 10
Версия драйвера: 9.18.13.3165
Визуализатор WebGL: Google Inc. -- ANGLE (NVIDIA GeForce 9600 GT Direct3D9Ex vs_3_0 ps_3_0)
Дата разработки драйвера: 10-23-2013
Драйвера видеокарты: nvd3dumx,nvwgf2umx,nvwgf2umx nvd3dum,nvwgf2um,nvwgf2um
Код производителя: 0x10de
Код устройства: 0x0622
Объём видеопамяти: 512
Описание видеокарты: NVIDIA GeForce 9600 GT
AzureCanvasBackend: direct2d
AzureContentBackend: direct2d
AzureFallbackCanvasBackend: cairo
AzureSkiaAccelerated: 0
JavaScript
----------
Инкрементальный GC: true
Поддержка доступности
---------------------
Активирована: false
Отключение поддержки доступности: 0
Версии библиотек
----------------
NSPR
Ожидаемая минимальная версия: 4.10.2
Используемая версия: 4.10.2
NSS
Ожидаемая минимальная версия: 3.15.3.1 Basic ECC
Используемая версия: 3.15.3.1 Basic ECC
NSSSMIME
Ожидаемая минимальная версия: 3.15.3.1 Basic ECC
Используемая версия: 3.15.3.1 Basic ECC
NSSSSL
Ожидаемая минимальная версия: 3.15.3.1 Basic ECC
Используемая версия: 3.15.3.1 Basic ECC
NSSUTIL
Ожидаемая минимальная версия: 3.15.3.1
Используемая версия: 3.15.3.1

cor-el
  • Top 10 Contributor
  • Moderator
10749 solutions 96724 answers

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.

Was this helpful to you? 1
Reply

Question owner

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

Was this helpful to you?
Reply
Diego Victor
  • Top 10 Contributor
  • Moderator
379 solutions 2222 answers

Go to Tools >> Options >> Privacy >> in the option "Firefox will:" change to "Never Remeber History", restart Firefox, now the history isnt remeber anymore

Was this helpful to you? 0
Reply

Question owner

Diego Victor, is that your solution? why not then uninstall Firefox at all?

Modified by alexey095

Was this helpful to you? 0
Reply
Diego Victor
  • Top 10 Contributor
  • Moderator
379 solutions 2222 answers

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..

Modified by Diego Victor

Was this helpful to you? 0
Reply

Question owner

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.

Modified by alexey095

Was this helpful to you?
Reply
Diego Victor
  • Top 10 Contributor
  • Moderator
379 solutions 2222 answers

Helpful Reply

That option to clear the recent history you can uncheck history and passwords if you dont want to clean it History Win3

Modified by Diego Victor

Was this helpful to you? 1
Reply

Question owner

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?

Modified by alexey095

Was this helpful to you?
Reply
cor-el
  • Top 10 Contributor
  • Moderator
10749 solutions 96724 answers

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.

  • Create a cookie 'allow' exception to keep such cookies, especially in case of secure websites and when cookies expire when Firefox is closed.
  • Tools > Options > Privacy > Cookies: Exceptions

In case you are using "Clear history when Firefox closes":

  • do not clear the Cookies
  • do not clear the Site Preferences

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.

Was this helpful to you?
Reply

Question owner

sorry, guys, what you are talking about is quite understandable but have no use to this problem. I don't need to clear my history, use custom settings for history, etc... I'm just asking a simple question. why cookies with expired date are still piled up in Firefox whereas they are supposed to be removed automatically (and now I'm not talking about session cookies).

Was this helpful to you?
Reply
cor-el
  • Top 10 Contributor
  • Moderator
10749 solutions 96724 answers

What are the current cookie settings?

You can inspect and manage the permissions for all domains on the about:permissions page or for the domain in the currently selected tab via these steps:

  • Click the "Site Identity Button" (globe/padlock) on the location bar
  • Click "More Information" to open Page Info
  • Go to the Permissions tab
  • Tools > Page Info > Permissions

You can delete the permissions.sqlite file to reset all permissions.

Was this helpful to you? 1
Reply

Question owner

it's just a couple of threads which describe the problem.

https://bugzilla.mozilla.org/show_bug.cgi?id=691973

http://code.google.com/p/firefoxanecp/issues/detail?id=10#c1

Modified by alexey095

Was this helpful to you?
Reply
Diego Victor
  • Top 10 Contributor
  • Moderator
379 solutions 2222 answers

Helpful Reply

Do you have two or more profiles in Firefox?

Was this helpful to you? 1
Reply

Question owner

one default profile. I didn't make much changes to the default settings. just installed a couple of add-ons, such as Scriptish and Adblock Plus.

Was this helpful to you?
Reply

Question owner

I removed cookies.sqlite from profile directory. but after a couple of days I found 'new' expired cookies. so, I may conclude, it's just 'normal' behavior of Firefox to store expired cookies in its database even though they are not in use anymore.

Was this helpful to you?
Reply
cor-el
  • Top 10 Contributor
  • Moderator
10749 solutions 96724 answers

Chosen 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.


  • Bug 576347 - Periodically purge expired cookies and vacuum db

Please do not comment in bug reports: https://bugzilla.mozilla.org/page.cgi?id=etiquette.html
You can vote to show your interest in getting the bug resolved: https://bugzilla.mozilla.org/page.cgi?id=voting.html.

Modified by cor-el

Was this helpful to you? 1
Reply
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.