SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.