in reply to Cookie Problem

I would suggest that your problem is using Matt Wright's cookie library. Try CGI.pm and you'll find that it is all integrated for you. From the CGI documentation:

$cookie = $query->cookie(-name=>'sessionID', -value=>'xyzzy', -expires=>'+1h', -path=>'/cgi-bin/database', -domain=>'.capricorn.org', -secure=>1); print $query->header(-cookie=>$cookie);

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.