[links-list] [PATCH] Cookies expiration and saving

Petr Baudis pasky at pasky.ji.cz
Mon Sep 3 02:57:33 PDT 2001


>   I wrote two simple patches for cookies. First one adds support for cookies
> expiration, the second one adds support for saving of cookies (it needs
> the first one to be applied previously).
I fixed cookies-save patch, so now the config file delimiter is ' ', instead
of \1 - it looks better and i overlooked statement that there cannot be a
space in cookie value :).

I discovered another unofficial patch for cookies saving, but imho this one
is a lot more elegant - it uses standard links' parse_http_date() function,
no huge lexical mass for bison, and code for saving/loading looks nicer ;-).

OBTW, please, is there old http-auth patch still available anywhere?

-- 

				Petr "Pasky" Baudis
.                                                                       .
#define BITCOUNT(x)     (((BX_(x)+(BX_(x)>>4)) & 0x0F0F0F0F) % 255)
#define  BX_(x)         ((x) - (((x)>>1)&0x77777777)                    \
                             - (((x)>>2)&0x33333333)                    \
                             - (((x)>>3)&0x11111111))
             -- really weird C code to count the number of bits in a word
.                                                                       .
My public PGP key is on: http://pasky.ji.cz/~pasky/pubkey.txt
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d- s++:++ a--- C+++ UL++++$ P+ L+++ E--- W+ N !o K- w-- !O M-
!V PS+ !PE Y+ PGP+>++ t+ 5 X(+) R++ tv- b+ DI(+) D+ G e-> h! r% y?
------END GEEK CODE BLOCK------

_______________________________________________
links-list mailing list
links-list at appwatch.com
http://mailman.appwatch.com/listinfo/links-list



More information about the links-list mailing list