in reply to Cookies In Perl

CGI.pm has lovely cookie routines I suggest you use CGI.pm for all header handling.