[Mono-dev] Response.Redirect possible exception when using forms authentication

Robert Jordan robertj at gmx.net
Fri Dec 16 07:09:43 EST 2005

Carlos Solorzano wrote:

> I changed my code to not do a RedirectFromLoginPage() but instead get  
> the authentication cookie and do a Response.Redirect(url,FALSE), and  
> that FALSE made it all work again. What I don't understand is what is  
> keeping the thread from being aborted, is there an easy way to find  
> that out? and why is no error actually showing up on the page?

Because it's how Response.End() and Respose.Redirect(url)
work: the execution of the page is aborted when one of
the methods gets called. This is documented and by design.

Using Respose.Redirect(url, false) leads to an unnecessary
and sometimes confusing page rendering.


More information about the Mono-devel-list mailing list