Mozilla will shut down Pocket’s services on July 8, 2025. At that time users will no longer be able to access the Pocket website, apps and API. You can export your saved items and API data until October 8, 2025 before they are permanently removed. For more information, see this article.

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How to save cookies in cloud drive?

  • 23 replies
  • 3 have this problem
  • 5 views
  • Last reply by Arafat_AAK

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.

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.

Chosen solution

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:

Read this answer in context 👍 0

All Replies (20)

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.

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

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

OK but no moderators are replying. I need help

Please wait for them.

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.

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.

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?

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.

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

Chosen Solution

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:

Modified by cor-el

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

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

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.

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

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?

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?

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

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?

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