wood burning stoves 2.0*
The moose likes Applets and the fly likes Read (access) FireFox cookies.sqlite file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Read (access) FireFox cookies.sqlite file" Watch "Read (access) FireFox cookies.sqlite file" New topic
Author

Read (access) FireFox cookies.sqlite file

Se Koan
Greenhorn

Joined: May 05, 2008
Posts: 7
I am writing a java applet that shows FireFox cookies. How to open the cookies.sqlite of FireFox 5 and read that database in Java?

I successfuly accessed cookies.sqlite of Firefox 3 but can't do it with versions 3+
I tried with org.sqlite.JDBC driver but without success. And got exception: file is encrypted or is not a database.
Is it necessary to decrypt the file first or get a permission?
I tried SqlJetDb and it gives exception "org.tmatesoft.sqljet.core.SqlJetException: NOTADB: error code is NOTADB"

Is there anything else do the task of showing FireFox5 cookies?
Thanks.
Se Koan
Greenhorn

Joined: May 05, 2008
Posts: 7
Just in case anybody will need it I have downloaded the latest sqlite jdbc 3.7.2 and now everything works fine.

 
 
subject: Read (access) FireFox cookies.sqlite file
 
Similar Threads
Java Applet unable to use a PHP page to store a cookie
session tracking
FireFox 1.0 and Cookies
How to retreive saved cookies
Not able to read all the Cookies