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); }
public void LogOut() { _sessionManager.UserContext = null; FormsAuthentication.SignOut(); _sessionManager.Abandon(); }