Ejemplo n.º 1
0
        public string SignInUserTools(string _login, string _password)
        {
            string resultSignIn = dbUser.SignInUserCheckDataBase(_login, _password);

            //if (resultSignIn.IndexOf("success") != -1)
            //{
            //    string[] split = resultSignIn.Split('/');
            //    split[0].Replace("id=", " ");
            //    string id = split[0].Replace("id=", " ").Trim();

            //    //Cookie aCookie = new Cookie();
            //    //aCookie.Name = "Authentication";
            //    //aCookie.Value = id;
            //    //HttpWebResponse s = new HttpWebResponse();
            //    //s.Cookies.Add(aCookie);

            //    resultSignIn = split[1].Replace("success", " ");
            //    // HttpCookie aCookie = new HttpCookie("Authentication");
            //}
            return(resultSignIn.Trim());
        }