Exemplo n.º 1
0
        public static string loginto(string username, string pass)
        {
            myDAL  obj    = new myDAL();
            string type   = "";
            int    id     = 0;
            int    status = 0;
            string email  = "";
            int    result = obj.loginto(username, pass, ref id, ref type, ref status, ref email);

            HttpContext.Current.Session["id1"] = id;
            if (result == 1 && status == 1)
            {
                HttpContext.Current.Session["Type"] = type;
                HttpContext.Current.Session["id"]   = id;
            }
            if (status == 0)
            {
                return(email);
            }
            else
            {
                return(status.ToString());
            }
        }