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

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.

Received on Friday, 15 November 1996 03:54:59 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:30 UTC