Disabling Back button of Browser on Logout click like Yahoo,Gmail etc for Security
<p>First, I am setting the session variable as Session["SessionId"] in the globle.asax file as below:-</p>

<pre><code>void Session_Start(object sender, EventArgs e) 
{
  // Code that runs when a new session is started
  string sessionId = Session.SessionID;
  Session["SessionId"] = "true";
}
</code></pre>

<p>I am using this code in the page_load() event of master page:-</p>

<pre><code>Response.Buffer = true;
Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d);
Response.Expires = -1500;
Response.CacheControl = "no-cache";

if(Session["SessionId"] == null)
{
  Response.Redirect("PatientLoginPage.aspx");
}
</code></pre>

<p>and using Firefox as my default brower, but it is not working in it as well as Chrome broweser correct me if i am wrong please help me...</p>

<p>Thanks in advance,</p>

<p>vaibhav D.</p>
