How do I maintain cookies across separate network connections?

John Zukowski

Java 5 introduced the abstract CookieHandler class to help with the process, though Java 5 lacks a usable implementation. You must implement yourself. Java 6 added the CookieManager for just such a task, but you must duplicate the class' functionality until then.