Sounds great, it'd be a nice addition to Apache2::Cookie. Getting the secret through to freeze and thaw is the tricky bit - I guess it could just be supplied to fetch() and new().

There are a couple of extras that I'm adding:

- a delete method which deletes the cookie by name (ie. you don't have to create an object) - an expiry time validator - if you absolutely need cookies to expire on time, store the expiry time in the validated cookie and check it, instead of relying on the user to expire it.

I really wanted a module called Cookie::Factory though.. the pod could be so amazingly funny.

Hehe! Perl is punny sometimes... the other day I wrote "sub merge {"...

...back to the code for me, I've started using Set-Cookie2 and firefox is ignoring them :(

John

Reply via email to