wolverina has asked for the wisdom of the Perl Monks concerning the following question:
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; $cookie_out = $q->cookie(-name=>"cookieinfo", -value=>$random,-expires=>'+24h'); print $q->header(-cookie=>$cookie_out);
Why is $cookie_in empty, and nothing being printed to the screen? -Lisa#!/usr/local/bin/perl use CGI; $q = new CGI; print "Content-type: text/html\n\n"; $cookie_in = $q->cookie("cookieinfo"); print $cookie_in;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: cookie woes
by mikeirw (Pilgrim) on Nov 20, 2002 at 17:20 UTC | |
by wolverina (Beadle) on Nov 20, 2002 at 17:47 UTC | |
by mikeirw (Pilgrim) on Nov 20, 2002 at 18:03 UTC | |
|
Re: cookie woes
by dingus (Friar) on Nov 20, 2002 at 18:06 UTC |