page expiration

  • Thread starter Thread starter Brad Williams
  • Start date Start date
B

Brad Williams

Is there a way to make it so that if the user presses the browser back
button, the browser will show "Page Expired"? I've tried doing this in
Page_Load to no avail:

this.Response.Cache.SetAllowResponseInBrowserHistory(false);
this.Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);
this.Response.Cache.SetValidUntilExpires(false);
this.Response.Cache.SetMaxAge(System.TimeSpan.Zero);

Thanks,
Brad Williams
 
Back
Top