i m having problem with logout code in asp.net with c#. this logout code should end session, disable browser's back button and and if somebody try to login by paste the url of any user account page, he can't.
plzzz help
i used this code in login page
protected void Button1_Click(object sender, EventArgs e)
{
Session["name"] = TxtUserName.Text;
}
and in logout i used this
protected void logout_Click(object sender, EventArgs e)
{
Session.RemoveAll();
Session.Abandon();
Response.ClearHeaders();
Response.Redirect("login.aspx");
}
nothing happening back button is still visible