in reply to Re: Getting data using Apache::Cookie
in thread Apache::Cookie cookie set and cookie retrieved not the same?!

Fetch gets the whole cookie? How do you get a specific piece from the fetched cookie? Is that was parse does?

Given the cookie in my first post:

my $cookies = Apache::Cookie->fetch(); my $value = $cookies->value;
This does not work.

Neil Watson
watson-wilson.ca

Replies are listed 'Best First'.
Re^3: Getting data using Apache::Cookie
by Fletch (Bishop) on Aug 04, 2004 at 20:52 UTC

    See the example from the libapreq source.

    ... my $r = shift; my $apr = Apache::Request->new($r); my $cookies = Apache::Cookie->new($r)->parse; my $c = $cookies->{'animals'}; my %zoo = (); %zoo = $c->value if $c; ...
      What does $c become? What is in %zoo? Why is it when my code gets unexpected results (see up-date at top of thread)?

      Neil Watson
      watson-wilson.ca