Esempio n. 1
0
    protected void Loginbtn_Click(object sender, EventArgs e)
    {
        if (Forum.AuthenticateUser(UserNametxt.Text, Passwordtxt.Text) == true)
        {
            string[] UserArry = glob.GetUserInfo(UserNametxt.Text).Split('-');
            //Sets the Session Variables
            HttpContext.Current.Session["Auth"]   = true;
            HttpContext.Current.Session["UserID"] = UserArry[2];
            HttpContext.Current.Session["FName"]  = UserArry[0];
            HttpContext.Current.Session["LName"]  = UserArry[1];

            LoginPanel();
            AuthCheck();
        }
        else
        {
        }
    }