AJH.CMS.Core.Data.UserManager.LogOut C# (CSharp) Method

LogOut() public static method

public static LogOut ( ) : void
return void
        public static void LogOut()
        {
            HttpContext.Current.Session.Remove(CoreConfigurationManager._CoreConfigSectionHandler.SecurityElement.SessionCurrentFormKey);
            HttpContext.Current.Session.Remove(CoreConfigurationManager._CoreConfigSectionHandler.SecurityElement.SessionCurrentRoleKey);
            HttpContext.Current.Session.Remove(CoreConfigurationManager._CoreConfigSectionHandler.SecurityElement.SessionCurrentUserKey);
            HttpContext.Current.Session.RemoveAll();
            HttpContext.Current.Session.Abandon();
        }