搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Firefox Deleting Session Cookies

  • 10 个回答
  • 14 人有此问题
  • 1 次查看
  • 最后回复者为 dojima

more options

Prior to the past couple of days (perhaps before the recent update to FF26), upon close, Firefox would delete all stored cookies except the ones related to tabs I had open at the time. When reopening Firefox, my session would be restored, and my logins to various sites would remain active.

Recently this behavior seems to have changed. Despite browser.sessionstore.privacy_level being set to 0 and browser.startup.page being set to 3, Firefox keeps deleting the cookies for my session. My history settings remain unchanged from what they were before I had the issue. I have Firefox set to accept cookies from sites, always accept third-party cookies, and keep them until I close Firefox. Under 'Clear history when Firefox closes', I have everything checked except for 'Browing & Download History'. If I change 'Keep until' to 'they expire' and uncheck cookies in the clear history settings, it will retain my session cookies, but it will also retain the cookies for websites not in my session. I have not installed any add-ons recently, and I have unsuccessfully tried every combination of history settings in an attempt to reach the previous behavior before this issue arose.

Curiously, Firefox only seems to delete some cookies. For instance, it remembers my Google username, but not the password or the fact that I was logged in. It also remembers the login for this forum and keeps me logged in completely. On Twitch, it seems to delete all cookies, completely logging me out.

I'm using Firefox 26 on Windows 7 64-bit.

Thanks for any help.

Prior to the past couple of days (perhaps before the recent update to FF26), upon close, Firefox would delete all stored cookies except the ones related to tabs I had open at the time. When reopening Firefox, my session would be restored, and my logins to various sites would remain active. Recently this behavior seems to have changed. Despite browser.sessionstore.privacy_level being set to 0 and browser.startup.page being set to 3, Firefox keeps deleting the cookies for my session. My history settings remain unchanged from what they were before I had the issue. I have Firefox set to accept cookies from sites, always accept third-party cookies, and keep them until I close Firefox. Under 'Clear history when Firefox closes', I have everything checked except for 'Browing & Download History'. If I change 'Keep until' to 'they expire' and uncheck cookies in the clear history settings, it will retain my session cookies, but it will also retain the cookies for websites not in my session. I have not installed any add-ons recently, and I have unsuccessfully tried every combination of history settings in an attempt to reach the previous behavior before this issue arose. Curiously, Firefox only seems to delete some cookies. For instance, it remembers my Google username, but not the password or the fact that I was logged in. It also remembers the login for this forum and keeps me logged in completely. On Twitch, it seems to delete all cookies, completely logging me out. I'm using Firefox 26 on Windows 7 64-bit. Thanks for any help.

由dojima于修改

被采纳的解决方案

Everyone's needs are different, but my strategy is to set "session only" as the default for all cookies, and then NOT clear cookies at shutdown. There are some sites where I want to stay logged in, so I create exceptions for those sites allowing them to create persistent cookies. You might not want to create any exceptions, so it should be a fairly simple fix for you.

(1) Set cookie lifetime to session only

orange Firefox button (or Tools menu) > Options > Privacy

Set "Keep Until: I close Firefox"

(2) Do not clear cookies at shutdown

orange Firefox button (or Tools menu) > Options > Privacy > "Settings" button

定位到答案原位置 👍 2

所有回复 (10)

more options
more options

I first had an issue where cookies wouldn't save after closing Firefox no matter what settings I used, so I read that thread and did manage to fix it by deleting all cookies manually, but the issue remains where it won't save my session cookies.

Thanks.

more options

Try this:

Go to "Tools" >> "Options" >> "Privacy" , in the option " The Firefox must:" set "Never memorize", click on OK

Go to your address bar and type "about:config", in the search bar, type "browser.privatebrowsing.autostart" will apper a single option change this optionto true.

more options

Do you use any cookie or privacy related extensions (or external software) that might be altering Firefox's normal behavior?

Have you noticed anything else going wrong with the session restore feature that might suggest the file has become corrupted in some manner?

more options

Actually, you have Firefox set to clear cookies on shutdown. Why did that combination ever work?!

Apparently the fact that cookies in your session store file were not cleared was a bug that was fixed, perhaps accidentally, in Firefox 26. (Based on the last comment here: 662485 – Clear history when Firefox closes: cookies, doesn't clear session cookies in Firefox 4+)

You may need to find a new cookie management strategy...

由jscher2000 - Support Volunteer于修改

more options

Wow, nice researching, jscher2000.

Well, this page seems to imply that there's a way to have Firefox only save the cookies of your session, otherwise why would they have that feature at all? There would just be an option to delete all cookies on close or none of them, not a session specific retention of data.

Although I suppose it's possible that browser.sessionstore.privacy_level just doesn't work as it's fully intended, because as I mentioned, it does maintain my logins for some sites—this one, for example—when I have 'keep until' set to 'they expire' and 'cookies' checked in the clear history settings. My sense is that this is indeed the thrust of the issue.

Thanks.

more options

选择的解决方案

Everyone's needs are different, but my strategy is to set "session only" as the default for all cookies, and then NOT clear cookies at shutdown. There are some sites where I want to stay logged in, so I create exceptions for those sites allowing them to create persistent cookies. You might not want to create any exceptions, so it should be a fairly simple fix for you.

(1) Set cookie lifetime to session only

orange Firefox button (or Tools menu) > Options > Privacy

Set "Keep Until: I close Firefox"

(2) Do not clear cookies at shutdown

orange Firefox button (or Tools menu) > Options > Privacy > "Settings" button

more options

That solution seems fine, but I can't seem to get exceptions to save. I even tried renaming the places, cookies, and permissions sqlite files thinking it was a corruption, but it still wouldn't save my exceptions. Whenever I close Firefox, they disappear from the exceptions list, and there's no mention of the exception in about:permissions. When I rename all the sqlite files, I can get them to appear in about:permissions after a close, but 'Set Cookies' changes back to 'Allow for Session' rather than 'Allow'. Very bizarre.

Thanks.

more options

Do not clear the Site Preferences as well.

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.

more options

Ah, that was indeed the issue.

Thanks for the help, jscher2000 and cor-el. Looks like that'll work just fine for my needs.  :-)