-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sat, Dec 09, 2006 at 02:18:09AM +0100, Marc Lambrichs wrote: > I'm trying to reset multiple cookies. However, only the last one of the > @cookies array is reset. How come? > [...] > foreach my $cookie ( @cookies ){ > $log->debug( '[logout]: ' . $cookie->as_string ); > $r->err_headers_out->add( 'Set-Cookie' => $cookie->as_string ); > }
Try instead this (DISCLAIMER: untested): $r->err_headers_out->add('Set-Cookie' => [EMAIL PROTECTED]); (i.e. adding the whole cookies list as one array ref). My guess is that err_headers_out has only one slot and you overwrite things on each call of add. HTH - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFFe58RBcgs9XrR2kYRArVLAJ9o598MNhyReXXq57zYkFzamFhFaQCggKjX WrSTAqUD4aW06vujDRlvl1k= =oj1b -----END PGP SIGNATURE-----