Does anyone know if I should be able to write a cookie like :
 
<snip>
$secure{USER}=$user->{USER_ID};
$secure{LEVEL}=$REQUEST{LEVEL};
%{$secure{USER_CATEGORIES}}=%USER_CATEGORIES;
%{$secure{USER_ACCOUNTS}}=%USER_ACCOUNTS;
@[EMAIL PROTECTED];
my $my_cookie = $q->cookie(-name=>'TechDirect', -value=>\%secure, 
        -expires=>'+10h');
print $q->header({-type=>"text/html", -target=>'toolbar',
        -cookie=>$my_cookie});
</snip>

When I return the cookie I don't appear to have the USER_CATEGORIES &
USER_ACCOUNTS plus USER_GROUP is null but is an array reference...
The scalar values return OK...

jwm

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to