473,938 Members | 5,527 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Page Expire

Hi All,

How can you expire an ASP.Net page when you navigate to another page so that
the user cannot go back to the first page?

any ideas?

Charles Mifsud
Aug 9 '06 #1
2 2112
The kind of "Expiration " you are describing is a function of the browser, by
manipulating the browser's History object. If you just search google or msn
on "How to disable the back button" you will find about 20 different
solutions of varying complexity.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Charles Mifsud" wrote:
Hi All,

How can you expire an ASP.Net page when you navigate to another page so that
the user cannot go back to the first page?

any ideas?

Charles Mifsud
Aug 9 '06 #2
As Peter said there could be several solutions,.. Take a look at the
following snippet and see if its of any use to you

Response.CacheC ontrol = "no-cache";
Response.Expire s = -1;
Charles Mifsud wrote:
Hi All,

How can you expire an ASP.Net page when you navigate to another page so that
the user cannot go back to the first page?

any ideas?

Charles Mifsud
Aug 9 '06 #3

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

Similar topics

2
4349
by: James | last post by:
I've been to websites where if I navigate off a form, trying to get back to it by hitting the back button gives me a page which says "Warning, page has expired". It doesn't display the page. I've been searching around trying to get this to happen for one of my aspx pages and I can't get it to expire. I've put the following HTML tags in the page: <meta http-equiv="expires" content="Sun, Dec 31 1970 12:00:00 GMT"> <meta...
4
2362
by: TCORDON | last post by:
How can I expire a page so if a user click back for example the page shows message "This Page has expired" or better yet a peronalized "Page expired" page. TIA!
1
2019
by: umamy | last post by:
Hi, I am writing code to do the followin: - user clicks a link - the page reloads and sets a cookie with a js function in the header. The function reloads the same page with the cookie set and points it to an anchor My problem is that after the page loads with the anchor, it also reloads again without the anchor because of the href="some page" part. I've tried changing that to nothing, or to include the anchor, but it messes up the...
0
1005
by: Charles Mifsud | last post by:
Hi, We have an ASP.NET 2.0 web page with user authentication. We have a page which contains a Multiview with a number of different views. Each view represents one step in a whole process. The user can move from one step to another using the WebControl Buttons (Next and Back) we provided on the views. Once the User comes in the last view and presses finish we do not want the user to click the Browser Back button, but expire somehow the...
3
4746
by: bbgraph | last post by:
Does anyone have a suggestion for doing this with a date function rather than the typical content=(number of seconds) function? I have an events page that I'd like to expire on a certain date and, in it's place, have a noevents page displayed. My server has Perl, Php and FrontPage extensions installed but I haven't been able to find a script anywhere that will do the job. Thanks in advance
0
976
by: Walter Psaila | last post by:
Hi, We have an ASP.NET 2.0 web page with user authentication. We have a page which contains a Multiview with a number of different views. Each view represents one step in a whole process. The user can move from one step to another using the WebControl Buttons (Next and Back) we provided on the views. Once the User comes in the last view and presses finish we do not want the user to click the Browser Back button, but expire somehow the...
0
1557
by: aspineux | last post by:
setacl and getacl look to be already "Cyrus" specific (according the doc), why not to extend imaplib a little bit more ? Here are some code I wrote and tested to support cyrus "expire" that manage how long a message can stay into a mailbox. This is usefull for NEWS server ! The code is preceded by lot of sample.
3
2806
by: =?Utf-8?B?Vk1J?= | last post by:
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/demos/ExpiringDemoA.aspx. But the page "expires" if I...
3
1381
by: =?Utf-8?B?T2xlZw==?= | last post by:
Using ASP.NET 2.0 I always thought that cache has a global scope in the web application. Is it possible to save an object to the page cache so it's not in the application scope? And if I set page cache to expire, would the object expire also? Thanks, Oleg
1
1398
by: Ananthu | last post by:
Hi I have designed a website in ASP.NET and if i leave any webpage for 2 or 3 minutes idle, the pages automatically expire. I am not able to open those pages in the brower without clearing the browsing history in the browser I have not used any timeout and expiry codings in my website. I want to know how to redirect to home page if any of the wepages expire and the home page should not expire. Please help me...
0
11103
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
11284
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
10653
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
9854
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...
0
7378
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();...
0
6290
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4901
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
2
4444
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3496
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.