473,405 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Expiration of Pages in ASP.NET

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

Nov 19 '05 #1
2 1107
Hi,
Try with the following line in the page init.
Response.Cache.SetCacheability(HttpCacheability.No Cache);

Regards,

P.Nishanthan

"jakk" <rj******@gmail.com> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com...
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

Nov 19 '05 #2

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

and also make a custom page where you will redirect your message. you
can check this page in IIS setting just find this page and customise
according to your need.
if you find me helpfull then plz let me.
--
ArunDotNet
------------------------------------------------------------------------
ArunDotNet's Profile: http://www.highdots.com/forums/m689
View this thread: http://www.highdots.com/forums/t2920454

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mario Hébert | last post by:
I have a simple C# object(class) that I reference in a <OBJECT classid="mydll.dll#nmsp.Ctrl"> tag of an HTML page generated by ASP.net. In a case where the Enable content expiration isn't checked...
0
by: TR | last post by:
If mypage.aspx is set to expire immediately using the management console page properties dialog, HttpHeaders tab, -- does the expiration setting take effect as soon as the dialog changes are...
5
by: Frankie | last post by:
Using ASP.NET 1.1 and IIS 6... what is the effect of enabling Content Expiration -- Expire Immediately? Does it cause the files in the virtual directory to be served on every single browser...
9
by: Mike Reed | last post by:
I must be having a "senile" day! I cannot recall, nor get to work, code to read a cookie's expiration date/time in an ASP page/VBScript. What am I missing? *** Sent via Developersdex...
0
by: mohdowais | last post by:
I have just stumbled upon an what seems to be a very under-rated feature in IIS - the "Enable Content Expiration" option under a website's properties. I have an ASP.NET web application that has a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.