Expiration of Pages in ASP.NET

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
 
N

Nishanthan

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

Regards,

P.Nishanthan
 
A

ArunDotNet

Hi,
use this code
Response.Cache.SetCacheability(HttpCacheability.No Cache);

and also make a custom page where you will redirect your message. yo
can check this page in IIS setting just find this page and customis
according to your need.


if you find me helpfull then plz let me
 

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

Members online

No members online now.

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top