Follow me on twitter @yodasmydad
Ahhhh #Fringe can't finish like that!! Latest Tweet:

Hey I'm Lee. My blog was put up to house my strange thoughts, ramblings, nuggets of information I can refer back to and document my learning curves on new dev stuff like Umbraco v5 and other .NET related things.

All thoughts and comments on here are my own, and in no way reflect my employer - I also take no responsibility for spelling, grammar or terminology, so read at your own risk!

Blogs I Read

Sites I Like

Member Logout Issue In v4.7.0

If you are using the latest version of Umbraco on a site that is using the default membership provider, you may have stumbled into the problem of users not being logged out properly.

I recently had this issue when using nForum on a site, and when the user logged out they appeared to still be logged in - This is something that the core team are aware of and it will be fixed in the next version, but if you need a work around the following code works to log the user out fully.

            Member.RemoveMemberFromCache(Member.CurrentMemberId());
            Member.ClearMemberFromClient(Member.CurrentMemberId());
            FormsAuthentication.SignOut();
            Roles.DeleteCookie();
            HttpContext.Current.Session.Clear();
Back to top