Hi All,
In a modperl2 handler, using Apache2::Cookie, I have code as follows to fetch
the names of the requests cookies:
my @cookie_names = (eval { $cookie_jar->cookies() });
if ($@) { _oops("Could not parse cookies blah blah."); }
I understand that with this code I either get all of the cookie names if they
all can be parsed, or I get none of the cookie names if a parsing exception is
thrown.
Is there a way to get the names of all of the cookies that could be parsed up
until the exception was thrown? I've seen in other postings this nifty example
for getting the cookie jar:
my $cookie_jar = eval { Apache2::Cookie::Jar->new($r) } || $@->jar;
I'm wondering if there might be something as succinct and elegant as this for
getting the cookie names.
-James
IMPORTANT NOTICE REGARDING THIS ELECTRONIC MESSAGE:
This message is intended for the use of the person to whom it is addressed and
may contain information that is privileged, confidential, and protected from
disclosure under applicable law. If you are not the intended recipient, your
use of this message for any purpose is strictly prohibited. If you have
received this communication in error, please delete the message and notify the
sender so that we may correct our records.