W3C home > Mailing lists > Public > www-jigsaw@w3.org > November to December 1996

set/get Cookies from PostableResource

From: Anselm Baird_Smith <abaird@www43.inria.fr>
Date: Fri, 15 Nov 1996 09:54:42 +0100 (MET)
Message-Id: <199611150854.JAA21845@www43.inria.fr>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:25 GMT