Expiration of Pages in ASP.NET

  • Thread starter Thread starter jakk
  • Start date Start date
J

jakk

hello all,

we have a web portal which has lots of sensitive information. Some of
these pages need to expire instantly when the user leaves the pages.
i.e. if the user presses the Back button to go back to one of the
sensitive info pages he shuld be redirected to a separate page that
says "Page has Expired". I was wondering if there is a way in ASP.NET
that I use?

Thanks
Jack
 
Hi,
Try with the following line in the page init.
Response.Cache.SetCacheability(HttpCacheability.NoCache);

Regards,

P.Nishanthan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top