[mod_python] Internal_redirect ?

Miguel Marques miguel at yorku.ca
Tue Jul 31 10:02:10 EST 2001


Greetings...
On Tue, 31 Jul 2001 15:59:14 +0200, Bo Lorentsen <bl at netgroup.dk> wrote:
> Miguel Marques wrote:
> 
> > With apache I do exactly what you are trying to accomplish by setting
> > a cookie in req.err_headers_out and returning apache.HTTP_FORBIDDEN.
> > Then in the apache configuration file you use
> > ErrorDocument 403 http://yourloginpage
> > in the directory/ies you are trying to protect...
> 
> Thats sweet, and the cookie will be set because its part of the
> "err_headers_out" ?
Yes.

> 
> > Hope that helps...
> 
> Thats a good hint and another interesting way of solving this problem.
> 
> Thanks, but I like to do it the propper way --- I think :-)
I couldn't wait... 8-)

						Miguel

C. Miguel Marques, York University, Computing & Network Services
e-mail: miguel at yorku.ca, voice: (416)736-2100x22684, fax: (416)736-5830



More information about the Mod_python mailing list