[mod_python] Internal_redirect ?

Bo Lorentsen bl at netgroup.dk
Tue Jul 31 15:59:14 EST 2001


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" ?

> 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 :-)

/BL




More information about the Mod_python mailing list