On Tue, 9 May 2000, Alex Menendez wrote:
> 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.
First, why the @$ref[1]? YOu're doing a slice when you really want
$ref->[1]. Anway, Apache::Request does not have any output methods like
CGI so this won't work.
Try checking out Apache::Cookie for the cookie part. For the redirect you
can do:
$r->header_out( Location => $location );
and then make sure that you send a REDIRECT status to the browser. (Return
REDIRECT from your module).
-dave
/*==================
www.urth.org
We await the New Sun
==================*/