-
Browser Cookie Access
How do you store browser cookies from an Applet? The APIs seem to suggest that you can but code like the following doesn't have any noticeable change on the cookies in the browser. Haven't been getting any exceptions from my signed applet.
Code:
resp = new HashMap<String, List<String>>();
resp.put("Set-Cookie2", Arrays.asList(new String[] {
"ProjectTest=ticket;Max-Age=100000;Domain=.srcf.ucam.org;Version=1"}));
CookieHandler ch = CookieHandler.getDefault();
ch.put(getCodeBase().toURI(), resp);
Anyone know how to do this?
-