Search Support

Beware of phishing attacks: Mozilla will never ask you to call a number or visit a non-Mozilla website. Please ignore such requests.

Learn More

How to save cookies in cloud drive?

  • 23 trả lời
  • 3 gặp vấn đề này
  • 415 lượt xem
  • Trả lời mới nhất được viết bởi Arafat_AAK

more options

Hey I have to delete the cookies once in a while to keep my device fast. But there are some important cookies that I need to keep. But as I delete all cookies, they get deleted too. So is there any way that the cookies that get stored from websites, will be transferred to a cloud storage. Like Onedrive, Dropbox, Google Drive etc? It will be a lot of help if it is possible.

Giải pháp được chọn

You can use this button to go to the current Firefox profile folder:

You may have to backup the permissions.sqlite file as well to keep the cookie exceptions.

See also:

Đọc câu trả lời này trong ngữ cảnh 👍 0

All Replies (20)

more options

There are add-ons that can help you with that. Go to the Mozilla Add-ons Web Page {web link} (There’s a lot of good stuff here) and search for cookies.

more options

Can you be a little more specific and provide any add-on link that can do the job?

more options

That is outside my experience. I've called the big guys to help you. Good luck.

more options

OK but no moderators are replying. I need help

more options

Please wait for them.

more options

I don't think that cookies could be a cause for Firefox being slow unless you have extensions that deal with cookies. A large history is a much more likely cause for Firefox being slow.

The only way to keep specific cookies is to let cookies expire when you close Firefox and create an allow exception for cookies that you want to keep.

  • clearing cookies will remove all selected cookies including cookies with an Allow exception you may want to keep
  • clearing "Site Preferences" clears exceptions for cookies, images, pop-up windows, and software installation and exception for password and other website specific data

You can set network.cookie.thirdparty.sessionOnly to true on the about:config page to make third-party cookies behave as session cookies that expire when Firefox is closed.


You can backup the cookies.sqlite file if you want to have a backup of the cookies.

The cookie export extensions on the add-ons website are quite old and may not be working in current Firefox releases.

more options

Someone once mentioned an add-on that saved important cookies and added them back at startup if they were cleared. However, after a few minutes of searching, I didn't see anything like that. You'll probably need to invest more time.

more options

cor-el said

I don't think that cookies could be a cause for Firefox being slow unless you have extensions that deal with cookies. A large history is a much more likely cause for Firefox being slow. The only way to keep specific cookies is to let cookies expire when you close Firefox and create an allow exception for cookies that you want to keep.
  • clearing cookies will remove all selected cookies including cookies with an Allow exception you may want to keep
  • clearing "Site Preferences" clears exceptions for cookies, images, pop-up windows, and software installation and exception for password and other website specific data
You can set network.cookie.thirdparty.sessionOnly to true on the about:config page to make third-party cookies behave as session cookies that expire when Firefox is closed.

You can backup the cookies.sqlite file if you want to have a backup of the cookies.

The cookie export extensions on the add-ons website are quite old and may not be working in current Firefox releases.

Where can I find cookies.sqlite file? How can I backup those files?

more options

The cookies.sqlite file is in your currently active profile folder. See: Profiles - Where Firefox stores your bookmarks, passwords and other user data.

Its internal format is a SQLite database, so don't expect to be able to edit or copy from this file without special tools.

more options

There are many files and folders in the profile folder stored in my PC. But which one should I save to backup my cookies?

more options

Giải pháp được chọn

You can use this button to go to the current Firefox profile folder:

You may have to backup the permissions.sqlite file as well to keep the cookie exceptions.

See also:

Được chỉnh sửa bởi cor-el vào

more options

If I backup the permissions.sqlite file then all my cookies are backed up too?

more options

You need to backup both files, cookies.sqlite and permissions.sqlite,

  • cookies.sqlite stores the cookies
  • permissions.sqlite stores Site Preferences like the exceptions for cookies, images, pop-up windows, and software installation
more options

Arafat_AAK said

If I backup the permissions.sqlite file then all my cookies are backed up too?

No. cookies.sqlite has the cookies. permissions.sqlite has site-specific permissions like whether and what kind of cookies the site is allowed to set.

more options

I see cookies.sqlite. But I also see cookies.sqlite-wal, cookies.sqlite-shm, and cookies.sqlite.bak. Which one should I backup?

more options

You should only backup cookies.sqlite. When you would restore cookies.sqlite then you need to remove existing temporary SQLite files cookies.sqlite-shm and cookies.sqlite-wal.

Did you close Firefox when you found cookies.sqlite-shm and cookies.sqlite-wal because these files would be removed when you close Firefox?

more options

So you mean that I should only save cookies.sqlite and permissions.sqlite file. So think that I have saved these two files into my online drive, now I'm using another computer and I have downloaded those two files from Onedrive, now tell me how will I get my cookies back. Will I have to place these file in the profile folder or will I have to click them and do some installation?

more options

You can copy the cookies.sqlite and permissions.sqlite files to the current profile folder while Firefox is closed to replace the currently present files.

You can use this button to go to the current Firefox profile folder:

Close Firefox after you have opened the profile folder via the "3-bar" menu button > Exit (Power button) or "File > Exit".

more options

So you mean that I copy cookies.sqlite and permissions.sqlite files then I clear my cookies. And then I go to the profile folder and replace these two files with the cookies.sqlite and permissions.sqlite files that are there, right?

more options

With Firefox closed replace those two files. Then restart Firefox.

Of course you may get slightly unpredictable or unexpected results with changing the cookies and permissions back to those from a later date.

You did see the much earlier comment and the alternative suggestions that followed
(#answer-860227} I don't think that cookies could be a cause for Firefox being slow unless you have extensions that deal with cookies. A large history is a much more likely cause for Firefox being slow. ....
  1. 1
  2. 2