perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <>
Subject Re: Auth Question need some input
Date Wed, 28 Nov 2007 03:41:47 GMT

Alexander Burrows wrote:
> I gave this a shot with the little bits I could find on
> the net and I can not seem to get it working. I have ordered the mod_perl
> cookbook but have not received it yet.

> I just tried a very basic one to start with that would check a cookie and
> redirect you to a login page if it was not there. The redirect would not
> work and I would get a forbidden message from the server.

you can't really return REDIRECT here, as you've discovered.  what you
need to do is return FORBIDDEN and couple that with a custom dynamic
ErrorDocument via $r->custom_response().  see recipe 13.7 in the
cookbook/above pdf.



View raw message