示例#1
0
 public static bool IsOperatorLogged()
 {
     if (!string.IsNullOrEmpty(AdvAliCookie.GetCookieMemberId()))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
示例#2
0
        public static int GetLoggedMemberId()
        {
            string memberid = AdvAliCookie.GetCookieMemberId();

            if (string.IsNullOrEmpty(memberid))
            {
                return(0);
            }
            string userid = clsdes.Decrypt(memberid);

            if (string.IsNullOrEmpty(userid))
            {
                return(0);
            }
            else
            {
                return(int.Parse(userid));
            }
        }