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.
http://www.modperlcookbook.org/chapters/ch13.pdf > > 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. HTH --Geoff