Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I created several cookies using CGI::Cookie. How to send them using "print $query->header(-cookie=>$cookies #several cookies here);". Thanks.

  • Comment on Send several cookies by header() method

Replies are listed 'Best First'.
Re: Send several cookies by header() method
by Masem (Monsignor) on Mar 15, 2001 at 01:14 UTC
    You can simply create a lot of cookies and send them off as an array:
    print $query->header(-cookie=>[$cookie1, $cookie2]);

    Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain