c# - Programmatically set browser cookie (Firefox) -
I know that Firefox 3.0 stores its cookies in a SQLite database and then there. My question is, can you access this database from other desktop programs in such a way that you can add a cookie?
I know that its security implications, however, I do not want to read them at all. If possible, I want to be able to set a cookie. I do not want to overwrite a cookie. I want to add it if it is not already. It's fun for me to work on a private project.
This question is mostly an agnostic language I prefer a solution in C #, but proof of concept in any language will be sufficient.
Additional credits: It would also be best to set this cookie in Internet Explorer
FF For 3, you can use cookies. Sqlite file - however, check whether FF is running or not - it can lock-lock the file (not tested).
The database includes:
tabulose moz_cookies (id INTEGER primary key, name text, value text, host text, path text, end INTEGER, It is not certain about the primary key; It seems that when the cookie was created, it is a Unix timestamp; the end and the last access are also Unix timestamps, the rest is self-explanatory.
< P> Try one moz_cookies in INSERT and see that FF immediately about new cookie You know, or if you need to restart.
Comments
Post a Comment