title: How to clear browser cache when user log off in asp.net using c#?
body: <p>As new in asp.net. In my asp.net application in membership in <code>log off</code>  <code>on click event</code> using function <code>ClearSession()</code>, but problem arises after log off if i click back button on browser it is forwarding to the cached page. How to clear cache in browser so a user could not view its profile if he is not login</p>
  
  <pre><code>protected void ClearSession()
  {
      FormsAuthentication.SignOut();
      Session.Clear();
      Response.Cache.SetCacheability(HttpCacheability.NoCache);
      Response.ExpiresAbsolute = DateTime.UtcNow.AddDays(-1d);
      Response.Expires = -1500;
      Response.CacheControl = "no-Cache";
  }
  </code></pre>