distortedpercecption.org Error Handler

This is the distortedperception.org error handling page. PHP errors tend to be ugly and also give away a fair amount of information that, from a security standpoint, can be very risky if the wrong people saw them. Because of these design considerations I determined that the safest course of action would be to redirect the user to a single page that handled all errors or anomylous situations. Normally when a PHP script teminates unexpectedly processing stops and an generic error is printed to the screen. If this happens at specific points during some scripts, like a login script, then theoretically the user could be reqistered as logged in even though they were never truly authenticated! By moving the error handling to a single remote script I can easily insure that all scripts fail gracefully and securely.

Please click the link below to see a sample error: