Programmatically set browser cookie (Firefox)
- by Andrew
I know from this question that Firefox 3.0 and up stores its cookies in an SQLite database. My question is: can you access this database from other desktop programs in such a way that you could add a cookie?
I realize this has security implications. However, I do not want to read them at all. I want to be able to set one cookie if possible. I don't even want to overwrite a cookie. I just want to add it if it isn't there already. This is sort of a personal project I'm working on for fun.
This question is mostly language agnostic. I would prefer a solution in C#, but proof of concept in any language will suffice.
Extra credit: It would be cool to set the same cookie in Internet Explorer, too