FirefoxCookiesManagerPlus icon indicating copy to clipboard operation
FirefoxCookiesManagerPlus copied to clipboard

[Request] convert cookies to session cookies according to domain policy

Open LupinIII opened this issue 9 years ago • 6 comments

My default cookie policy is to store session cookies only and allow only certain sites to set cookies with an expiration date. I have now seen that I have quite alot of cookies with expiration date from sites that should be allowed session cookies only. Either a Firefox update or an extension must have changed my default cookie policy for that to happen (or maybe it was these annoying "this site uses cookies" messages that set the policy for certain sites). So now I have a list of 2999 cookies (is that a Firefox limit or did I "luck out" on that number?), 2499 of which I'd like to have gone at the end of the session and maybe 500 I would like to keep, because they contain login information and page settings for sites I use more often.

It would be nice, if you could automatically apply the domain cookie expiration policy to your stored cookies. Admittedly that is most likely only useful for converting cookies with expiration date into session cookies (or delete them if that's the policy), something you'd most likely only do rarely if you changed your global cookie policy. Maybe it would be possible to add a column type to the list that shows the currently set policy for the cookie domain so you can sort by that and then bulk edit all of them.

LupinIII avatar Aug 18 '16 11:08 LupinIII

How do you set such policy?

vanowm avatar Aug 18 '16 12:08 vanowm

Like described on this page: https://support.mozilla.org/en-US/kb/enable-and-disable-cookies-website-preferences and then set the "keep until" to "end of session" (translating from german, as that's the language my FF is set to). You can also set exceptions from that dialog, which is cumbersome, so I use an extension ("Cookie Monster") to set the exceptions more conveniently (offers a simple button in the addon bar).

LupinIII avatar Aug 18 '16 12:08 LupinIII

I think the 2999 cookies you have were made before you changed the policy...or maybe restored cookies from a backup file. I just tried set my test browser with your settings and all the 4151 cookies that were previously created stayed intact. It looks like changing that policy applies only to new cookies.

I know it's not what you are requesting, but if you'd wish set all cookies to session, you can do so by selecting them, then go to edit, uncheck all checkboxes on left side except for expiration field, set expiration to session and save. CM+ doesn't have access to that "exceptions" database for this request to work. From a quick look it seems it requires async access, which will cripple CM+ at current structure (just like it did with HTML5 support in v 1.7)

vanowm avatar Aug 18 '16 22:08 vanowm

A single click to accept EU cookie rules means that the user has given consent to the E-Privacy Directive, or:

the storing of information, or the gaining of access to information already stored, in the terminal equipment of a subscriber or user

It's possible to cut out most of these banners, otherwise don't click on them.

Atavic avatar Oct 03 '16 18:10 Atavic

@Atavic sorry, you've lost me.

vanowm avatar Oct 05 '16 04:10 vanowm

@vanowm just saying that by clicking on EU Cookie banners you agree to what I cited above.

You click it and the cookies are written.

Atavic avatar Oct 05 '16 17:10 Atavic