Help for this page

Select Code to Download


  1. or download this
    my %cookie = CGI::Cookie->fetch;
    
  2. or download this
    if (exists $cookie{test}) {
       # we have our cookie, do something with $cookie{test}->value
    ...
       # now we "inject" into the HTTP headers
       print header(-cookie=>$cookie);
    }