mod_perl2 passing env vars when doing internal_redirects



i am porting a mod_perl module from mod_perl1 to mod_perl2.

the script does an internal_redirect and sets some environment-vars. if
the "check" is valid the "REMOTE_USER" is set. this works perfect in
mod_perl-1.29

$r->log_error("Do the User Check ==> $check eq $key");
if ($check eq $key) {
# set REMOTE_USER
# $r->connection->user($user); # in mod_perl_1.x
$r->user($user); # in mod_perl_2.x
$r->log_error("Redirect_User ==> $uri");
}
$r->log_error("Do the Internal-Redirect ==> $uri");
$r->internal_redirect($uri);
return HTTP_MOVED_TEMPORARILY;

the same code in mod_perl2 is not working. after chaning some mehtods
and do the "renaming" required for mod_perl2 the redirect is done but i
only get an environment var "REDIRECT_REMOTE_USER". how can i do an
internal redirect but set (or keep) the env-vars during/after redirect?

thanxs

markus

.



Relevant Pages

  • Re: LDAP query information
    ... a "Dim" statement. ... script is run. ... Microsoft MVP Scripting and ADSI ... to redirect the output to a text file: ...
    (microsoft.public.windows.server.scripting)
  • Re: Page_Load method issues with Back Button
    ... startup script if it should run or not. ... redirect set the hidden field to a different value. ... Instead the client receives the response.redirect and still ... I have created a webform. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: PHP file download counter
    ... This will log the request to a flat file then redirect the ... // Class SimpleRedirectLog ... $err = false; ... Write a script that supplies the file download with the correct mime type ...
    (comp.lang.php)
  • Re: Redirect sends to cc recipients again. Bug?
    ... to redirect outgoing mail to an email account that I only open/receive ... Create an outgoing message and have a copy of that sent to another ... Try using this script instead of redirecting. ... Entourage Help Page for download if that would help. ...
    (microsoft.public.mac.office.entourage)
  • Re: MF Server rts32 does not run in AIX 5.3L batch queue
    ... I can't redirect output to /dev/null as the program running under the ... configuration of the queue device for the job queue. ... > If your script has a command like ...
    (comp.lang.cobol)