logout
login.cs
try { if (dt.Rows.Count > 0) { Session["Login"] = true; Session["UserName"] = dt.Rows[0]["UserName"].ToString(); username = dt.Rows[0]["UserName"].ToString(); } else { Response.Write("<Script>alert('data is not match');window.location.href='stafflogin.aspx';</Script>"); } } catch { } finally { response.Redirect("Default.aspx"); }
protected void logout_Click(object sender, EventArgs e) { Session["Login"] = false; Session.RemoveAll(); Response.Redirect("~/stafflogin.aspx"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)