gregor-e has asked for the wisdom of the Perl Monks concerning the following question:
I tried to fake the JavaScript cookie setting by grabbing the cookie values from the JavaScript source and simply setting these cookies in the $agent->cookie_jar. Unfortunately, HTTP::Cookies->set_cookie() appears to simply overwrite a previous cookie having the same name, rather than saving an array of values for a cookie of a given name. So now I'm kinda stuck. Can the perluminati suggest a way my script can provide more than one cookie having the same name?<script language="JavaScript" type="text/javascript"> // Set cookies document.cookie = "Report_Profile_ID=654321;path=/cgi-bin\"; document.cookie = "Report_Profile_ID=654321;path=/actuate"; document.cookie = "FirstTime=1;path=/cgi-bin"; document.cookie = "FirstTime=1;path=/actuate"; // end cookie set </script>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need same named cookies
by isotope (Deacon) on May 16, 2003 at 22:35 UTC |