473,804 Members | 2,255 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2797
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*@discussion s.microsoft.com wrote in message
news:41******** *************** ***********@mic rosoft.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*@discussion s.microsoft.com wrote in message
news:41******** *************** ***********@mic rosoft.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*@discussion s.microsoft.com wrote in message
news:59******** *************** ***********@mic rosoft.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*@discussion s.microsoft.com wrote in message
news:41******* *************** ************@mi crosoft.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
4744
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 Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
3
2366
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 expired the forms authentication cookie is assigned a new value. I am never redirected to the login page after my initial login. If I access the site from http://localhost/myapp instead of myapp.domain.com the cookies expire correctly. The cookie...
4
1206
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
1316
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 to push the button to save all data. It's not very convenient and we'd like to implement something more powerful to save the page data before a next page is shown. Any idea? Can we use for example meta tags, java scripts, or whatever to write...
6
1776
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 aspnet_wp process is not restarting during this time, and there are no other requests, so nothing should be clearing this out. I have added a CacheItemRemovedCallback which writes debug info out to a DefaultTraceListener, but no output shows up on...
3
1673
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 ram).My problem is when some user submit a bug his session is expiring and redirecting to home page.my code is ----------------------------------------------------------------------------------------------------------------- protected void...
3
2041
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 ACTION=SUBMIT buttons, so that clicking either button will immediately reload the page only with an argument tacked on, e.g. "?size=128" or "?size=256". This causes some images to be resized, but otherwise the page appears the same.
3
3538
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. The timeout is set to 10 minutes. Here is the important code snippets that I took from my original code: string roleToCheck = .....; FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(1, member.UserName, DateTime.Now,...
0
9714
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9594
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10346
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10347
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10090
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9173
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7635
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6863
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4308
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.