At 9:28 AM +0000 3/7/02, Jeff wrote:
>Please forgive a mod_perl wannabie [aka woza.PHP4.user]
>
>I have googled two differing flavoured cookies in the
>mod_perl recipe library:
> Apache::Cookie
> Apache::RequestNotes
>
>and of course, there is the 'Why not hack the HTTP_COOKIE
>env all by your lonesome?' peppermint flavour too!
>
>So which is it folks? Please vote for your favourite
>flavour of cookie for poor woza.PHP4.user
>
Actually, I always roll my own... I can't stand those Apache::Cookie
and CGI::Cookie modules... they never seem to work the way I expect
them to.
Plus, decoding cookies is easy.
my %cookies = map {
s/\%([A-F0-9]{2})/chr(hex($1))/eg; split(/=/,$_,2);
} (split(/\&/,$ENV{'HTTP_COOKIE'}));
Rob
--
When I used a Mac, they laughed because I had no command prompt. When
I used Linux, they laughed because I had no GUI.