public void RefreshCurrentUser() { cache.Remove(LoginUserGuid.ToString()); var user = ur.GetByUserGuid(LoginUserGuid); if (user != null) { cache.Insert(LoginUserGuid.ToString(), user); } }
protected void _Logout() { cache.Remove(LoginUserGuid.ToString()); Response.Cookies["gyuid"].Value = null; }