AJH.CMS.Core.Data.UserManager.LogOut C# (CSharp) Méthode

LogOut() public static méthode

public static LogOut ( ) : void
Résultat 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();
        }