Delete a cookie outside of palemoon

Support and discussions for the x86/x64 Linux version of Pale Moon.

Moderator: trava90

Post Reply
JujuLand
Newbie
Newbie
Posts: 5
Joined: 2017-04-26, 08:08

Delete a cookie outside of palemoon

Post by JujuLand » 2020-06-01, 14:03

Hi,

I need to open an url from a program. To correctly do that, I must remove a cookie.

Is-it possible outside of the browser, using a line command, or launching palemoon with a parameter ?

Thanks
A+

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 27009
Joined: 2011-08-28, 17:27
Location: 58°2'16"N 14°58'31"E
Contact:

Re: Delete a cookie outside of palemoon

Post by Moonchild » 2020-06-01, 18:30

No
"There will be times when the position you advocate, no matter how well framed and supported, will not be accepted by the public simply because you are who you are." -- Merrill Rose
Image

User avatar
Lunokhod
Fanatic
Fanatic
Posts: 213
Joined: 2017-04-20, 21:25
Contact:

Re: Delete a cookie outside of palemoon

Post by Lunokhod » 2020-06-01, 18:32

Cookies seem to be stored in the current profiledir in cookies.sqlite and it's a binary file, so not easily manually editable. If you could script click actions (which I think is possible with some helper libs, like xdotool) then I suppose you could open the tools menu and delete the cookie as usual. Or perhaps copy cookies.sqlite, then add a blank file in it's place, do what you need with Pale Moon and replace it after closing Pale Moon later? There could be a better answer than this though!

User avatar
New Tobin Paradigm
Off-Topic Sheriff
Off-Topic Sheriff
Posts: 7326
Joined: 2012-10-09, 19:37
Location: Binary Outcast

Re: Delete a cookie outside of palemoon

Post by New Tobin Paradigm » 2020-06-01, 19:34

Don't mess with core profile files like sqlite or jsom databases.

JujuLand
Newbie
Newbie
Posts: 5
Joined: 2017-04-26, 08:08

Re: Delete a cookie outside of palemoon

Post by JujuLand » 2020-06-01, 21:07

Thanks for the answers ... even it doesn't make me happy :(

A+

User avatar
The Squash
Moon lover
Moon lover
Posts: 89
Joined: 2020-03-25, 19:31
Location: Location, location, location!

Re: Delete a cookie outside of palemoon

Post by The Squash » 2020-06-08, 22:45

Not an elegant solution, but it is something.

I suppose what you want is to be able to open a particular URL in Pale Moon from an external script, using a command like this:

Code: Select all

palemoon https://www.florblorp.info/login.php
You might consider creating a new Pale Moon profile which is set up to not keep any cookies when the browser is shut. You can create a new profile using the command:

Code: Select all

palemoon --ProfileManager
Give the new profile a name such as "For scripting only". Then you can invoke Pale Moon from a script and request that Pale Moon use the other profile, like so:

Code: Select all

palemoon --profile "For scripting only"  https://www.florblorp.info/login.php
Now there are two caveats with that method:
  1. First, obviously this means that all cookies from that profile are cleared when the browser is shut -- not just the one you were talking about.
  2. Second, this may make Pale Moon ask you which profile you'd like to use every time you start the browser. You can remedy this by starting the browser using the command:

    Code: Select all

    palemoon --profile default
ANACRON RELOADED
THE DAEMONS HAUNT THE ADMINISTRATOR
"Utterly awful -- there's no other word to describe the film." -- Movies on the Run
COMING OCTOBER 31st
Not rated -- too low budget for that...

User avatar
New Tobin Paradigm
Off-Topic Sheriff
Off-Topic Sheriff
Posts: 7326
Joined: 2012-10-09, 19:37
Location: Binary Outcast

Re: Delete a cookie outside of palemoon

Post by New Tobin Paradigm » 2020-06-09, 04:57

That's kinda a dumb idea.

User avatar
Moonraker
Board Warrior
Board Warrior
Posts: 1396
Joined: 2015-09-30, 23:02
Location: uk.

Re: Delete a cookie outside of palemoon

Post by Moonraker » 2020-06-09, 08:29

Off-topic:
Does anyone know what a "singleton cookie" is.I found one in a folder on my system.Im certain it did not come from pale moon.I removed it anyway and it never returned.
Xenial puppy linux 32-bit.

Pale moon 28.9.3

User avatar
moonbat
Board Warrior
Board Warrior
Posts: 1571
Joined: 2015-12-09, 15:45

Re: Delete a cookie outside of palemoon

Post by moonbat » 2020-06-09, 10:35

Off-topic:
Moonraker wrote:
2020-06-09, 08:29
Does anyone know what a "singleton cookie" is.
Think of a singleton as an object that only can have one copy of itself across the system. So the cookie must be similar - the site that set it uses only that one instance of it for whatever purpose it is for.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Linux Mint 19.3 Xfce x64 on HP i5 laptop with 12 GB RAM, always latest versions of PM & Basilisk unless specified.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 27009
Joined: 2011-08-28, 17:27
Location: 58°2'16"N 14°58'31"E
Contact:

Re: Delete a cookie outside of palemoon

Post by Moonchild » 2020-06-09, 16:18

the question was to delete a cookie outside of Pale Moon with a command passed to it. The answer to that is No.
The whole temporary profile thing etc is a terrible crutch and doesn't even apply at all to the OP's question, so I don't know why you brought it up.
"There will be times when the position you advocate, no matter how well framed and supported, will not be accepted by the public simply because you are who you are." -- Merrill Rose
Image

User avatar
The Squash
Moon lover
Moon lover
Posts: 89
Joined: 2020-03-25, 19:31
Location: Location, location, location!

Re: Delete a cookie outside of palemoon

Post by The Squash » 2020-06-11, 21:19

Moonchild wrote:
2020-06-09, 16:18
The whole temporary profile thing etc is a terrible crutch and doesn't even apply at all to the OP's question, so I don't know why you brought it up.
Let the OP decide for themselves. Sure it applies: Maybe deleting all cookies is allowable to the OP.
ANACRON RELOADED
THE DAEMONS HAUNT THE ADMINISTRATOR
"Utterly awful -- there's no other word to describe the film." -- Movies on the Run
COMING OCTOBER 31st
Not rated -- too low budget for that...

User avatar
adesh
Board Warrior
Board Warrior
Posts: 1039
Joined: 2017-06-06, 07:38

Re: Delete a cookie outside of palemoon

Post by adesh » 2020-06-12, 09:06

Cookies are stored in a sqlite database file. So deleting the cookie from outside of the browser is of course possible in the technical sense of the term, but it's not for the faint of heart and is heavily recommended against.

A workaround and hopefully a possible solution:
  1. You can get the URL from the browser when you click the link in your other program.
  2. Copy this URL.
  3. Open the URL in a private window or a new profile where the cookie won't be present.
Is that not acceptable? Are you doing this programmatically / via automation?

Post Reply