473,386 Members | 1,785 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,386 software developers and data experts.

Expiring page immediately after leaving it...

How can I expire a page after I click on something that redirects me to
another page (either a link or a Submit button)? I load the page to be
expired via https.
I've tried several options I found on the web, including adding on
(OutputCache location="none") on my aspx page, using Session.Count, among
others. I even tried something that I found on
http://aspnet.4guysfromrolla.com/dem...ringDemoA.aspx. But the page
"expires" if I refresh. If I hit "Back" and "Forward" it won't expire.

Any help is appreciated.
THanks.
VS2005 v2.0
Nov 11 '07 #1
3 2778
You can set history with JavaScript so the back button does not work. You
can also set the page, using meta tags, to expire so it will not cache on
the client side.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box!
|
*************************************************
"VMI" <VM*@discussions.microsoft.comwrote in message
news:41**********************************@microsof t.com...
How can I expire a page after I click on something that redirects me to
another page (either a link or a Submit button)? I load the page to be
expired via https.
I've tried several options I found on the web, including adding on
(OutputCache location="none") on my aspx page, using Session.Count, among
others. I even tried something that I found on
http://aspnet.4guysfromrolla.com/dem...ringDemoA.aspx. But the page
"expires" if I refresh. If I hit "Back" and "Forward" it won't expire.

Any help is appreciated.
THanks.
VS2005 v2.0

Nov 11 '07 #2
Do you have some links that can help me?

"Cowboy (Gregory A. Beamer)" wrote:
You can set history with JavaScript so the back button does not work. You
can also set the page, using meta tags, to expire so it will not cache on
the client side.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box!
|
*************************************************
"VMI" <VM*@discussions.microsoft.comwrote in message
news:41**********************************@microsof t.com...
How can I expire a page after I click on something that redirects me to
another page (either a link or a Submit button)? I load the page to be
expired via https.
I've tried several options I found on the web, including adding on
(OutputCache location="none") on my aspx page, using Session.Count, among
others. I even tried something that I found on
http://aspnet.4guysfromrolla.com/dem...ringDemoA.aspx. But the page
"expires" if I refresh. If I hit "Back" and "Forward" it won't expire.

Any help is appreciated.
THanks.
VS2005 v2.0


Nov 11 '07 #3
For caching:
http://www.chami.com/Tips/internet/113096I.html

Disabling back button:
http://www.4guysfromrolla.com/webtech/111500-1.2.shtml

The second is the most thorough way to stop a user from using the back
button. Caching will lead to a page expired warning, which is good in many
situations.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box!
|
*************************************************
"VMI" <VM*@discussions.microsoft.comwrote in message
news:59**********************************@microsof t.com...
Do you have some links that can help me?

"Cowboy (Gregory A. Beamer)" wrote:
>You can set history with JavaScript so the back button does not work. You
can also set the page, using meta tags, to expire so it will not cache on
the client side.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*********************************************** **
| Think outside the box!
|
*********************************************** **
"VMI" <VM*@discussions.microsoft.comwrote in message
news:41**********************************@microso ft.com...
How can I expire a page after I click on something that redirects me to
another page (either a link or a Submit button)? I load the page to be
expired via https.
I've tried several options I found on the web, including adding on
(OutputCache location="none") on my aspx page, using Session.Count,
among
others. I even tried something that I found on
http://aspnet.4guysfromrolla.com/dem...ringDemoA.aspx. But the page
"expires" if I refresh. If I hit "Back" and "Forward" it won't expire.

Any help is appreciated.
THanks.
VS2005 v2.0



Nov 13 '07 #4

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

Similar topics

4
by: sandman | last post by:
How do I make sure that the user goes "back" to an expired webpage? Is there a way to trap the Back button and load a different page with the "page has expired" message? margaret *** Sent via...
3
by: Mike | last post by:
I have a web application that the forms authentication cookie is not expiring correctly. When I look at the trace information of a newly requested page after the session and forms authentication have...
4
by: brian | last post by:
Is there an event that can be fired when a user navigates to another page. If a user is at page 'A' and navigates to page 'B' I want code to excute. I am not looking for browser exits. Thanks
2
by: Just D. | last post by:
Guys, does anybody know how to catch the event when the page is changing? We created a simple editor on the aspx page for our clients, but if somebody wants to leave this page immediately he need...
6
by: Adam | last post by:
On an xp machine, the caching works as expected. I have deployed to a win2k server, and an item I add to the cache expires almost immediately some times and in under a minute in other times. The...
3
by: renjucool | last post by:
I am developing an online bug tracking system in asp.net.IT is implemented now in our office,at a time around 10-15 peoples are using.Web application is hosted in a local machine(core 2duo-1 gb...
3
by: MangroveRoot | last post by:
Hi all ... I've been learning and using PHP for a couple months now, working on a couple of somewhat different sites. On one site, I have a page with a form, and that form includes a couple of...
3
by: rh.krish | last post by:
I have a typical ASP.NET 2.0 Forms authentication application which authenticates against Active Directory. I use non-persistent cookie so that the user is NOT remembered across browser sessions....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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.