On Tue, 2004-05-11 at 15:14, Angie Ahl wrote: > Now what I'd like to try and do is this: > > Catch failed attempts to AuthDBI::authen AND if the realm password was > wrongpw > - redirect them to a logged out page. > > If I've worked this out right the next time they go to the realm > protected area they'll be prompted for a un/pw again.
I think that will only happen if you send a status code indicating that the auth was denied, meaning that you won't be able to send a redirect. If you accept the auth (by not sending an auth failure code), the browser will keep sending it until it is shut down. You can send the failure status code along with content of your choice (i.e. do an internal redirect or just send the file yourself), but some browsers (read IE) may not display your custom content. - Perrin -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html