為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Made cookies.sqlite read-only, it's gone when I returned to unmake read-only

more options

=

See the solution at the end of this post

=

Not sure now what I tried to accomplish with this move, in Ubuntu 12.04 and Firefox 23 as my current browser version. Whatever, it did not have desired effect, Firefox will not save any cookies past the session anymore.

I have these files in my profile starting with "cookies" in the name:

cookies.sqlite.bak cookies.sqlite.bak-rebuild cookies.sqlite-shm cookies-sqlite-wal

I was going to ask this question, and looking in the profile to see what I have there, I closed Firefox and renamed cookies.sqlite.bak to cookies.sqlite. Opened Firefox and I see cookies.sqlite missing and again there is a cookies.sqlite.bak.

This time, with the browser open on this question-in-progress, I copied cookies.sqlite.bak to cookies.sqlite.bak (copy) and renamed that to cookies.sqlite. It has read-write permissions and it remains to be seen what happens when I close the browser and reopen it.

My privacy setup is set to accept all cookies, including third-party, and to discard cookies when I close Firefox.

CookieMonster is used to override Firefox default for those sites where I want to accept cookies so I can keep site preferences or to stay logged-in. CookieMonster is not being obeyed, the cookies are discarded.

==

Solution

==

Based on the answer in the third post in the thread, from the top two lines of Cor-el's post, I have cleared my problem with just the removal of all files with "cookies.sqlite" at the beginning of their names, closing and restarting Firefox. Firefox recreated all the names, and the new cookies.sqlite has read-write permissions without my setting them.

In the Privacy tab under Edit > Preferences: Firefox is set to use custom settings for history, and I accept all cookies, including third-party, and keep them until I close Firefox.

I use the CookieMonster add-on to override this default setting on selected sites, so I can keep their cookies from one session to the next, which saves some site preferences, and keeps me signed in to my web site.

Back on the Privacy tab, I clear history when Firefox closes, but in Settings, I do not include cookies. (I include cache and offline website data.)

To include cookies here would cause Firefox to dump ALL cookies at the end of the session including those which save my site preferences and keep me logged in via settings in CookieMonster.

======= See the solution at the end of this post ======= Not sure now what I tried to accomplish with this move, in Ubuntu 12.04 and Firefox 23 as my current browser version. Whatever, it did not have desired effect, Firefox will not save any cookies past the session anymore. I have these files in my profile starting with "cookies" in the name: cookies.sqlite.bak cookies.sqlite.bak-rebuild cookies.sqlite-shm cookies-sqlite-wal I was going to ask this question, and looking in the profile to see what I have there, I closed Firefox and renamed cookies.sqlite.bak to cookies.sqlite. Opened Firefox and I see cookies.sqlite missing and again there is a cookies.sqlite.bak. This time, with the browser open on this question-in-progress, I copied cookies.sqlite.bak to cookies.sqlite.bak (copy) and renamed that to cookies.sqlite. It has read-write permissions and it remains to be seen what happens when I close the browser and reopen it. My privacy setup is set to accept all cookies, including third-party, and to discard cookies when I close Firefox. CookieMonster is used to override Firefox default for those sites where I want to accept cookies so I can keep site preferences or to stay logged-in. CookieMonster is not being obeyed, the cookies are discarded. ========== Solution ========== Based on the answer in the third post in the thread, from the top two lines of Cor-el's post, I have cleared my problem with just the removal of all files with "cookies.sqlite" at the beginning of their names, closing and restarting Firefox. Firefox recreated all the names, and the new cookies.sqlite has read-write permissions without my setting them. In the Privacy tab under Edit > Preferences: Firefox is set to use custom settings for history, and I accept all cookies, including third-party, and keep them until I close Firefox. I use the CookieMonster add-on to override this default setting on selected sites, so I can keep their cookies from one session to the next, which saves some site preferences, and keeps me signed in to my web site. Back on the Privacy tab, I clear history when Firefox closes, but in Settings, I do not include cookies. (I include cache and offline website data.) To include cookies here would cause Firefox to dump ALL cookies at the end of the session including those which save my site preferences and keep me logged in via settings in CookieMonster.

由 Linux_Mint_Firefox 於 修改

被選擇的解決方法

Did you try to remove all cookies.sqlite files and let Firefox create a new file?


Create a new profile as a test to check if your current profile is causing the problems.

See "Creating a profile":

If the new profile works then you can transfer some files from an existing profile to the new profile, but be careful not to copy corrupted files.

從原來的回覆中察看解決方案 👍 1

所有回覆 (5)

more options

Set Firefox to always accept cookies and disabled CookieMonster addon. Shut Firefox and opened it again. Still have to re-enter my sign-ons.

I had copied and renamed a copy of cookies.sqlite.bak to cookies.sqlite, but it went away as soon as the next opening of the browser.

Set Firefox to always remember history, instead of Custom, and set Google to open search results in a new window, which I treat as a new tab, and logged into my web site. Closed Firefox and reopened.

Lost my Google search preference and must log in again on my web site.

I really fouled things up good. Where to from here?

more options

選擇的解決方法

Did you try to remove all cookies.sqlite files and let Firefox create a new file?


Create a new profile as a test to check if your current profile is causing the problems.

See "Creating a profile":

If the new profile works then you can transfer some files from an existing profile to the new profile, but be careful not to copy corrupted files.

more options

Blowing away the family of cookies.sqlite* and restarting Firefox caused Firefox to recreate everything, including the cookies.sqlite file itself.

I signed into my web site and remembered myself on this computer, and closed the browser, and upon reopening, I am still logged in.

Quite apparent that the whole family of cookies files works together, and I appreciate your suggestion! After some further testing confirms everything is OK, I will attempt to edit my top post to include the fix.

more options

You only need the cookies.sqlite file
The cookies.sqlite-shm and cookies-sqlite-wal are SQLite temp files and should go away as soon as Firefox get closed, but this may not be working properly if you make cookies.sqlite read-only and you need to remove them yourself.

more options

Indeed the cookies.sqlite is the only file remaining of the cookies family of files when I close Firefox.

Thank you for your assistance Cor-el!