shahab
Junior Contributor
I have a session how can I destroy it:
Session["username"] = TextBox1.Text.ToString();
if (isUserValid(TextBox1.Text.ToString(),TextBox2.Text.ToString()))
{
TextBox1.Text="";
Response.Redirect("AdminUsers/Main.aspx");
}
else
{
Session.Remove("username");
//Session.Abandon();
What is the differene between clear-Abandon-...?
Session["username"] = TextBox1.Text.ToString();
if (isUserValid(TextBox1.Text.ToString(),TextBox2.Text.ToString()))
{
TextBox1.Text="";
Response.Redirect("AdminUsers/Main.aspx");
}
else
{
Session.Remove("username");
//Session.Abandon();
What is the differene between clear-Abandon-...?