Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have configured an intranet using Claims based authentication and an extended internet site using forms based authentication in SP 2010

All is set up and working except logging out...

I have a loginstatus control which I have placed a linkbutton inside the loggedin template. When I click the button to log out, I have used:

 Session.Abandon();
        Response.Cookies.Clear();
        FormsAuthentication.SignOut();

And a custom redirect. ~However when I get redirected back to my home page the system still says that Im logged in and I navigate around the site. How else do I force a logout?

share|improve this question

2 Answers 2

How have you implemented the custom redirect? Is it a Response.Redirect? I can imagine that could override the clearing of the cookies in the http response.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.