B
Brandon Owensby
I am using ASP.NET 2.0 and programming in C#. I am trying to make it so that
the secure pages in my web application time out in the browsers cache such
that hitting the back button won't show the page just because someone hit
the back button. I've seemingly done everything it says in the help about
the Cache property of Response. The code I used is below and it still
seems to allow me to hit the back button and see the previous page event
after I have waited longer than the timeout period.
Thanks for any help you can provide,
Brandon
this.Response.Cache.SetExpires(DateTime.Now.AddSeconds(5));
this.Response.Cache.SetCacheability(HttpCacheability.Public);
this.Response.Cache.SetValidUntilExpires(false);
the secure pages in my web application time out in the browsers cache such
that hitting the back button won't show the page just because someone hit
the back button. I've seemingly done everything it says in the help about
the Cache property of Response. The code I used is below and it still
seems to allow me to hit the back button and see the previous page event
after I have waited longer than the timeout period.
Thanks for any help you can provide,
Brandon
this.Response.Cache.SetExpires(DateTime.Now.AddSeconds(5));
this.Response.Cache.SetCacheability(HttpCacheability.Public);
this.Response.Cache.SetValidUntilExpires(false);