i'm doing my first cookie script.. but i'm having trouble.
#!/usr/local/bin/perl
use CGI;
$q = new CGI;
$cookie_out = $q->cookie(-name=>"cookieinfo",
-value=>$random,-expires=>'+24h');
print $q->header(-cookie=>$cookie_out);
That prints cookie to hard drive. Now using a different script, this should read it back in:
#!/usr/local/bin/perl
use CGI;
$q = new CGI;
print "Content-type: text/html\n\n";
$cookie_in = $q->cookie("cookieinfo");
print $cookie_in;
Why is $cookie_in empty, and nothing being printed to the screen? -Lisa