not completely sure about real mod_perl. However, the following works
great using Apache::Registry and CGI:
print $query->header(-cookie=>[$id_cookie,$crypt_cookie],
-Location=>$query->param("redirect").'?name='.@$ref[1].'&last_login='.@$ref[3].'&site_id='.$query->
param('site_id'));
I think Apache::Request will work just in same manner.
-amen
On Tue, 9 May 2000, Robin Berjon wrote:
> At 00:13 09/05/2000 -0700, Perrin Harkins wrote:
> >Bill Desjardins wrote:
> >> I checked the archives and the guide to no avail, so here goes. I am
> >> having trouble setting a cookie in the header and then doing a
> >> redirect. The cookies are working fine every where, but if I add a cookie
> >> to $r->headers_out->add(), set a location via $r->headers_out(Location =>
> >> 'newrui') and return REDIRECT, I get no cookies being set. is this a bug,
> >> feature, or a feature of the wonderful world of incompatible browsers?
> >
> >This is a known problem with certain browsers. The cookie will get set,
> >but will not get returned on this first redirect. You could try putting
> >the cookie data in a query string and looking for it there when it isn't
> >in the cookie.
>
> Isn't there a work-around consisting of making 100% sure the cookie is sent
> before the Location header ?
>
>
>
> .Robin
> All paid jobs absorb and degrade the mind. -- Aristotle
>