JBowes has asked for the wisdom of the Perl Monks concerning the following question:

the cookie is set by a prgroam at http://storm.prohosting.cin/fightior/cgi-bin/login.pl the code that sets the cookie is as follows
use CGI ':standard'; my $query = CGI->new(); my $cookie = $query->cookie(-name=>'username', -value=>$query->param('name'), -expires=>'+1h', -domain=>'storm.prohosting.com'); print $query->header(-cookie => $cookie);
the program that will retrieve that data will be at http://storm.prohosting.cin/fightior/cgi-bin/warrior.pl. I hve been unable to retrieve the cookie and have used mutliple methods but i always end up with a null value. The cookie is set because I have looked at it. Thank you in advance

Replies are listed 'Best First'.
(ar0n) Re: cookie set now how can i retreive the value
by ar0n (Priest) on Jun 16, 2001 at 18:53 UTC
    Simply call it by it's name. Like a dog:
    my $spot = $query->cookie('username');
    or:
    my $fido = $query->cookie( -name => 'username' );
    Just don't provide the value parameter.

    ar0n ]