can someone show me an example of setting and retrieving a cookie using 
CGI.pm. I have tried the following but it won't set a cookie. I have my 
browser set to ask me whether i want to allow the cookies, and the script 
doesn't ask me:

#!/usr/bin/perl

use CGI qw/:standard/;
$q = new CGI;
print header();

$cookie = $q->cookie(-name=>'fontsize',
                      -value=>'12',
                      -expires=>'20s',
                      -domain=>'http://www.peanutbuttercheesecake.co.uk');

is there something else I have to put to actually set the cookie instead of 
just defining it?

-- 
Matthew Harrison
Internet/Network Services Administrator
Peanut-Butter Cheesecake Hosting Services
Genstate
www.peanutbuttercheesecake.co.uk


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to