[WebMethod(EnableSession = true)] public void userLogin(string userName, string password) { int userID = userAuthenticate(userName, password); Session["USRID"] = userID; }
protected void Page_Load(object sender, EventArgs e) { if (Session["USRID"] != null) Response.Redirect("MyDashboard.aspx", false); else Response.Redirect("Login.aspx", false); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)