http://www.perlmonks.org?node_id=6375


in reply to Recommended modules for handling cookies?

Hmm, as far as I know you just enter the domain you want it to be valid for, presumably your subdomain.
With CGI.pm:
$cookie = $query->cookie(-name=>'name', -value=>'value', -expires=>'expcode', -path=>'partial_url', -domain=>'domain_name' -secure=>1); print $query->header(-cookie=>$cookie);
Perl In A Nutshell, page 338

setantae@eidosnet.co.uk|setantae|www.setantae.uklinux.net