in reply to CGI::cookie query

Appears you are looking for a solution like this (from the CGI::Cookie perldoc)

Within a CGI script you can send a cookie to the browser by creating one or more Set-Cookie: fields in the HTTP header. Here is a typical sequence: my $c = new CGI::Cookie(-name => 'foo', -value => ['bar','baz'], -expires => '+3M'); print "Set-Cookie: $c\n"; print "Content-Type: text/html\n\n"; To send more than one cookie, create several Set-Cookie: fields. Alternatively, you may concatenate the cookies together with "; " and send them in one field.

Just do the Set-Cookie in your loop and the header after...

Replies are listed 'Best First'.
Re: Re: CGI::cookie query
by costas (Scribe) on Apr 02, 2001 at 20:31 UTC
    The problem is is that the cookie values must not be concatenated, they have to be sent as seperate cookies (project rules). ..I also have to use the CGI::cookie module (hence no use of set-cookie)