Hi,
I have some problems in setting and getting back Cookie Values with
Apache::Cookie.
I'm setting a cookie with Apache::Cookie and it seems that the cookie is
set correct:
my $c = Apache::Cookie->new($r,
-name => 'conf',
-value => $hash_ref,
-expires => '+30D',
-path => '/'
);
$c->bake;
But while Recovering the Cookie I got some errors:
$cookie_ref = Apache::Cookie->fetch;
Now $cookoe_ref->{conf} contains not a reference to the old values, it
contains a skalar like "Apache::Cookie=SCALAR(0x8b675b8)", but no
hashref ...
Whats going on? It seems that I'm too stupid, argl!
The CGI::Cookie-POD only sais:
fetch returns an associative array consisting of all
cookies returned by the browser. The keys of the array
are the cookie names.
OK, OK, but what's with the Values of the Hash?
How can I get the Cookie Values back?
Whats going wrong?
Thanx and Ciao
Alvar