How to Set Default Cookie = Allow for Session in Firefox 70?

User Help for Mozilla Firefox
Post Reply
KentonS
Posts: 66
Joined: December 19th, 2008, 8:15 am

How to Set Default Cookie = Allow for Session in Firefox 70?

Post by KentonS »

I can't help but think that this question has already been asked, but I couldn't find it.

In Page Info | Permissions | Set Cookies, one of the options is Use Default. One of the other listed options that becomes available to select once Use Default is deselected is Allow for Session. I would like to set Allow for Session as the default. Can I do that? If so, how?

Thanks!
Kenton
User avatar
dickvl
Posts: 54145
Joined: July 18th, 2005, 3:25 am

Re: How to Set Default Cookie = Allow for Session in Firefox

Post by dickvl »

Maybe modify this pref on the about:config page ?
network.cookie.lifetimePolicy = 2

https://dxr.mozilla.org/mozilla-release ... cy.js#1467
https://support.mozilla.org/en-US/kb/ab ... or-firefox
KentonS
Posts: 66
Joined: December 19th, 2008, 8:15 am

Re: How to Set Default Cookie = Allow for Session in Firefox

Post by KentonS »

dickvl wrote:Maybe modify this pref on the about:config page ?
network.cookie.lifetimePolicy = 2
Thanks! That appears to have worked.

Isn't that something that could once be changed in Firefox via Options | Privacy & Security? Or am I thinking of Seamonkey, which is/was built on top of Firefox and which I used for years.
User avatar
dickvl
Posts: 54145
Joined: July 18th, 2005, 3:25 am

Re: How to Set Default Cookie = Allow for Session in Firefox

Post by dickvl »

There used to be a "Keep until" choice with options like:
Keep until: they expire
Keep until: I close Firefox
The latter makes cookies session cookies.

In current Firefox releases this probably corresponds with "Delete cookies and site data when Firefox is closed" with a broader coverage.
This choice honors cookie allow exceptions in contrary to using "Clear history when Firefox closes" that clears all selected data.

Clearing Site Preferences removes exceptions and clearing cookies removes all the cookies.
Post Reply