Baz has asked for the wisdom of the Perl Monks concerning the following question:
------------------------------------------------------- Code ------------------------------------------------------- #!/usr/local/bin/perl -w use strict; use CGI; my $query = new CGI; my $cookie_out = $query->cookie( -name=>"MY_NAME", -expires=>'+24h', -domain=>'cgi.tripod.com', -secure=>0 ); print $query->header(-cookie=>$cookie_out); print $query->start_html("Cookie Test"); # DEBUG TO SCREEN print $query->p; print $query->header(-cookie=>$cookie_out); print $query->p; my $cookie_in = $query->cookie("MY_NAME"); if($cookie_in) { print $cookie_in; } else { print "Can't find the cookie"; } print $query->p; print $query->end_html;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: The Cookie Monster Returns......$ENV on tripod???????
by chromatic (Archbishop) on Aug 28, 2001 at 03:44 UTC | |
by Anonymous Monk on Aug 28, 2001 at 05:49 UTC | |
|
Re: The Cookie Monster Returns......$ENV on tripod???????
by bladx (Chaplain) on Aug 28, 2001 at 03:23 UTC |