Example #1
0
        public void RefreshCurrentUser()
        {
            cache.Remove(LoginUserGuid.ToString());
            var user = ur.GetByUserGuid(LoginUserGuid);

            if (user != null)
            {
                cache.Insert(LoginUserGuid.ToString(), user);
            }
        }
Example #2
0
 protected void _Logout()
 {
     cache.Remove(LoginUserGuid.ToString());
     Response.Cookies["gyuid"].Value = null;
 }