- From: Anselm Baird_Smith <abaird@www43.inria.fr>
- Date: Fri, 15 Nov 1996 09:54:42 +0100 (MET)
- To: Steve <daddyo@sparky.oroad.com>
- Cc: www-jigsaw@w3.org
daddyo@sparky.oroad.com writes: > > Does anyone have any simple code that sets a cookie? > Check the CookieFilter, in w3c.jigsaw.contrib.CookieFilter In particular this is the right way of creating cookie lists: // Create an empty "set-cookie" list: HttpSetCookieList setcookies = HttpFactory.makeSetCookieList(null); // Add one set-cookie clause to the list HttpSetCookie setcookie = setcookies.addSetCookie(NAME, strcount); That's the only correct way of creating cookies. Anselm.
Received on Friday, 15 November 1996 03:54:59 UTC