Geoff,
        The reason I was using an internal redirect was that I wanted to maintain
the request for the following page.
        The internal_redirect is being called in several circumstances - From
PerlAuthenHandler, PerlAuthzHandler and a PerlHandler for login().

        1) Is there any other way of redirecting to a different page and
maintaining the request.
        2) Should I seeing what I'm getting ?

        Cheers

        Gareth

> -----Original Message-----
> From: Geoffrey Young [mailto:[EMAIL PROTECTED]
> Sent: 05 March 2003 13:57
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: internal_redirect and returns
>
>
> [snip]
> > I use this subroutine:
> >
> > sub let_through {
> >         my ($self, $r, $p) = @_;
> >         $r->set_handlers( PerlAuthzHandler => [\&OK] );
> >         $r->set_handlers( PerlAuthenHandler => [\&OK] );
> >         $p && $r->internal_redirect( $p );
> >         return OK;
> >         }
> >
> > And under some circumstances might call:
> >     return $self->let_through( $r, $login_page );
> > for instance.
> >
> > When this happen I find that the page shows ( $login_page
> ), but the browser
> > continues to show loading.
> > I check the error log and find:
> >     message type 0x50 arrived from server while idle
>
> IIRC, you can only call internal_redirect from a content
> handler.  from your
> code I suspect that you're not doing that, since it would be
> too late to
> unset the auth phases.
>
> HTH
>
> --Geoff
>
>
>


Reply via email to