##
My cookie code (which finally works)--
$cookie = cookie(-name => 'sessionID',
-value => makeCookieValue($userpass),
-expires => '+1h'
);
####
I've tried this suggestion which someone gave to me--
my $cookievalue = getFirstOrValue(cookie());
print "New cookie stuff: $cookievalue";