W3C home > Mailing lists > Public > www-lib@w3.org > October to December 1998

Request for implementing cookies in libwww

From: Henrik Frystyk Nielsen <frystyk@w3.org>
Date: Sun, 13 Dec 1998 17:05:19 -0500
Message-Id: <3.0.5.32.19981213170519.009f3500@localhost>
To: www-lib@w3.org

I am wondering whether someone has already implemented a cookie
implementation for libwww of whether someone is interested in helping doing
this? The way I think it should be done is to register a before and an
after filter which are linked together with some sort of a database.

Whenever a request is generated, the before filter is called "on the way
out". The filter will check the URI against its database and see whether it
has a cookie for that location. If so, then it is inserted - it not,
nothing is changed.

When we receive a response, the after filter is called "on the way in". If
a cookie is present then it is stored in the database.

This is exactly the same mechanism which the authentication schemes are
using. Authentication uses a simple URI tree to store the information but
this is not persistent and may not be efficient enough but then again, it
may if made persistent.

Anyone would like to take this on so that we can get it into the code base?

Henrik
--
Henrik Frystyk Nielsen,
World Wide Web Consortium
http://www.w3.org/People/Frystyk
Received on Sunday, 13 December 1998 21:40:41 EST

This archive was generated by hypermail pre-2.1.9 : Wednesday, 3 September 2003 17:59:24 EDT