Feb 10, 2003, 2:03 AM
Post #2 of 3
Looks like a good reason for using the CGI.pm functions instead of trying to do it yourself. Your content-type header seems to have metamorphosed into a "content-http" header which probably confuses things completely.
Re: [tack] an easy question:how to write cookie?
[In reply to]
Using CGI.pm, it would look like this:
use CGI ':standard';
my $cookie = cookie(-name => 'user', -value => 2,
-expires => '+1y', -path => '/');
print header(-cookie => $cookie);
Dave Cross, Perl Hacker, Trainer and Writer
Get more help at Perl Monks