CS3172 > Materials > sysdocs > CGI cookies
pack
function to encode lots of data into a string.
(The current Perl documentation should be at the perldoc.perl.org website
print header( -cookie=>$variable,
-expires=>'+1d' ); # tomorrow
print header( -cookie=>$variable,
-expires=>'Thu, 25-Oct-2001 12:00:00 GMT' );