public virtual bool LogOff(ISessionManager sessionManager)
        {
            CacheManager.ClearCurrentUserCache();
            //var debugUser = SourceControl.DebugUsers?.Find(du => du.UserId == CurrentUserManager.Id);



            //    if (debugUser != null)
            //        SourceControl.DebugUsers?.Remove(debugUser);



            sessionManager.Abandon();
            return(true);
        }
示例#2
0
 public void LogOut()
 {
     _sessionManager.UserContext = null;
     FormsAuthentication.SignOut();
     _sessionManager.Abandon();
 }