Session.Abandon
Session.Clear()
protected void btnLogout_Click(object sender, EventArgs e) { //clear session variables Session["Name"] = ""; Session["Address"] = ""; Session["Phone"] = ""; //redirect to index page Response.Redirect("index.aspx"); }
Session.Remove("varName");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)