[REBOL] Re: server side cookie handling example ...
From: petr:krenzelok:trz:cz at: 3-Mar-2003 18:21
Maarten Koopmans wrote:
> Here you are, published under the GNU public License (see www.gnu.org).
> Copyright 2002 by Maarten Koopmans and Ernie van der Meer.
>
> n-joy.
>
> --Maarten
Hello Maarten,
thanks a lot for your code. Comparing it to your earlier version, I can
see special function for date. What is the purpose of setting GMT date?
Rebol's 'to-idate isn't optimal?
Also - I slightly changed your earlier implementation of set-cookie, as
I never remember what argument goes first :-) So I implemented expires,
secure etc. as function refinements, so I don't send them back to client
if not required (I am not sure it is correct though ....
One suggestion maybe ... you seem to "prin" your partial results .... I
would suggest not doing so - I remember rebol 1.0 days and my first CGI
attempt ... I found out sending results to client in parts is magnitude
slower, than accumulating your results first, and sending in once ... I
can see printing newline at the end of function - that way you don't
give function user chance to accumulate first :-)
Anyway ... your code is very nice and polished, thanks once again!
Cheers,
-pekr-