Beispiel #1
0
 /// <summary>
 /// 管理员注销
 /// </summary>
 public void UserLogout()
 {
     AdminCookie.SesionUser userExt = GetUserInfoFromCookie();
     if (userExt == null)
     {
         return;
     }
     AdminCookie.ClearUserSession();
 }
Beispiel #2
0
 /// <summary>
 /// 获取管理员对象 by cookie
 /// </summary>
 /// <returns></returns>
 public AdminCookie.SesionUser GetUserInfoFromCookie()
 {
     AdminCookie.SesionUser userExt = AdminCookie.GetUserFromCookie();
     return(userExt);
 }