in reply to Re^4: Setting and Reading Cookies
in thread Setting and Reading Cookies
To create multiple cookies, give header() an array reference:So for your specific example, try print $cgi->header( -cookie => [$cookie1,$cookie2,$cookie3] ).$cookie1 = cookie(-name=>'riddle_name', -value=>"The Sphynx's Question +"); $cookie2 = cookie(-name=>'answers', -value=>\%answers); print header(-cookie=>[$cookie1,$cookie2]);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Setting and Reading Cookies
by bigjoe11a (Novice) on Jun 21, 2005 at 03:56 UTC |