when i click on logout button, everything will be fine after that click on back button of browser user does not enter or login ..thats also good.(but, no event click on master pages; working is good )
and, any event is clicked like search items (i mean using select query or fetch data through button click)
logout button working not good ...its work like normal page ;i.e. when i click on logout ...redirect to home page using Session.clear();
& Redirect.Response("page.aspx")
Use this code,behind master page page_load:
if (!IsPostBack)
{
if (Session["name"] == null)
{
Response.Redirect("Default.aspx");
}
else
{
Response.ClearHeaders();
Response.AddHeader("Cache-Control", "no-cache, no-store, max-age=0, must-revalidate");
Response.AddHeader("Pragma", "no-cache");
Label1.Text = "WELCOME" + " " + Session["name"];
}
now i want to disabling back button without using of javascript, because reason is when someone stop the javascript of browser ....same issues occurs..