Please note that cookies are nothing but plain text files. As long as location of a file is known then you can use java.io.* package to read contents of that file.I was wondering why you want to do that?