Programmatically set browser cookie (Firefox)
Posted
by
Andrew
on Stack Overflow
See other posts from Stack Overflow
or by Andrew
Published on 2009-05-05T20:19:21Z
Indexed on
2011/01/07
19:53 UTC
Read the original article
Hit count: 143
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
© Stack Overflow or respective owner