You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Rasoul Hajikhani <ra...@rhythm.com> on 2001/10/24 02:48:53 UTC

Somewhat relevant

Folks, if this looks like an off topic, my apologies in advance...
I have written an accessing scheme that checks for the existence of
couple of cookies and if not present, the user is rerouted to a login
page. So far simple stuff. The problem is that my boss is saying that it
should work with a CGI script or a PHP script (legacy codes that are too
many to port to mod_perl today). The basic mechanism behind my script is
returning an error constant 403 in case the cookies are missing. Now,
PHP, according to my boss, is very similar to a CGI script, so how does
one throw an error (of any kind) that would cause Apache to generate its
famous error page from a CGI program?
Thanks in advance...
-r