Help for this page

Select Code to Download


  1. or download this
    my $cgi = CGI->new();
    my $cookie = $cgi->cookie( -name=>$self->name, -value => 1, -expires=>
    + '-1d');
    
  2. or download this
    my $cgi= CGI->new();
    my $cookie = $cgi->cookie( -name=>$name, -value => 1, -expires=> '-1d'
    +);
    ...
    
    print "This text is sent to the browser, and at the same time the cook
    +ie is cleared\n";
    
  3. or download this
    delete $ENV{HTTP_COOKIE};