My Application makes some login request to some servers. I want to export theses cookies to cookies.sqlite. What do I have to do that Firefox accepts these cookies? Its not working yet.
I have created a database with a table:
Code: Select all
CREATE TABLE moz_cookies (id INTEGER PRIMARY KEY, baseDomain TEXT, appId INTEGER DEFAULT 0, inBrowserElement INTEGER DEFAULT 0, name TEXT, value TEXT, host TEXT, path TEXT, expiry INTEGER, lastAccessed INTEGER, creationTime INTEGER, isSecure INTEGER, isHttpOnly INTEGER, CONSTRAINT moz_uniqueid UNIQUE (name, host, path, appId, inBrowserElement))
and after that I try to insert the cookies with:
Code: Select all
INSERT INTO moz_cookies (id,name,value,path,baseDomain,host,expiry) VALUES ("1","name","value","/","www.example.net","www.example.net","2147483647")
In the settings of Firefox the cookies are the same like the real ones, but my inserted cookies are not sent. What's wrong?