OEMike has asked for the wisdom of the Perl Monks concerning the following question:
Figure #2#!/usr/bin/perl5 use CGI qw/:standard/; use CGI::Cookie; my $c3 = new CGI::Cookie(-name => 'preferences', -value => '', -expires => 'now', -domain => '', -path => '/' -secure => 0 ); my $c1 = new CGI::Cookie(-name => 'ID', -value => '', -expires => 'now', -domain => '', -path => '/' -secure => 0 ); my $c2 = new CGI::Cookie(-name => 'userid', -value => '', -expires => 'now', -domain => '', -path => '/' -secure => 0 ); print "Content-Type: text/html\n\n"; print "Set-Cookie: $c1,$c2,$c3\n";
#!/usr/bin/perl5 use CGI qw/:standard/; use CGI::Cookie; %cookies = fetch CGI::Cookie; print "Content-Type: text/html\n\n"; print $ENV{HTTP_COOKIE};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI::Cookie
by thpfft (Chaplain) on Jul 18, 2002 at 14:35 UTC | |
by OEMike (Novice) on Jul 18, 2002 at 14:41 UTC |