Thread was being aborted

G

Guest

Hello,

I am using FormsAuthentication. I am logging In through a Authentication
cookie and signing out through a button.

On click of that button i am writing

FormsAuthentication.SignOut();
Response.Redirect("Login.aspx");

At Response.Redirect("Login.aspx"); this line it is giving
'Thread was being aborted' exception

Does any one know how to solve the problem

Thanks
 
G

Guest

that's the default expected behavior of Response.Rediret (and
Server.Transfer), so don't worry about that.
 
G

Guest

Reshma,

This is a known problem. For a workaround you can use an overload to
Response.Redirect that will pass false to the endresponse parameter to
suppress the internal call to Response.End (e.g.
Response.Redirect("Login.aspx", false);). I have posted the link to this in
the MSDN below.

Hope this helps.
 
A

Alvin Bruney [MVP]

strictly speaking, it is not a *problem. It is designed that way.

--
Regards,
Alvin Bruney

Shameless Author plug
The Microsoft Office Web Components Black Book with .NET
http://tinyurl.com/27cok
 
A

Alvin Bruney [MVP]

tehehe, that is a very good one. PRB and writers really need to be in sync.
I agree.

--
Regards,
Alvin Bruney

Shameless Author plug
The Microsoft Office Web Components Black Book with .NET
http://tinyurl.com/27cok
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top