473,411 Members | 2,068 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,411 software developers and data experts.

Expiring the Page To discourage Browser BACK button

Hello All:

On the click of the back button, I just want the user to see "Warning: Page
Expired...". I just
couldn't do it in .NET. I am not sure what I am missing. I tried everything
said in the Page.Response.Cache class. Even tried the traditional way of
doing things in the previous ASP versions. Nothing works.

This is a local website running in a Windows 2000 Server
machine. I'm Accessing the website using http:\\localhost\mysite.

Any suggesions?

Thanks,
Nithi Gurusamy

Nov 20 '05 #1
5 1125
Try this

http://www.15seconds.com/issue/010202.htm

"Nithi Gurusamy" <ni****@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hello All:

On the click of the back button, I just want the user to see "Warning: Page Expired...". I just
couldn't do it in .NET. I am not sure what I am missing. I tried everything said in the Page.Response.Cache class. Even tried the traditional way of
doing things in the previous ASP versions. Nothing works.

This is a local website running in a Windows 2000 Server
machine. I'm Accessing the website using http:\\localhost\mysite.

Any suggesions?

Thanks,
Nithi Gurusamy

Nov 20 '05 #2
In Addition to that you can also do the same programatically on page load

CJ Taylor wrote:
Try this

http://www.15seconds.com/issue/010202.htm

"Nithi Gurusamy" <ni****@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hello All:

On the click of the back button, I just want the user to see "Warning:


Page
Expired...". I just
couldn't do it in .NET. I am not sure what I am missing. I tried


everything
said in the Page.Response.Cache class. Even tried the traditional way of
doing things in the previous ASP versions. Nothing works.

This is a local website running in a Windows 2000 Server
machine. I'm Accessing the website using http:\\localhost\mysite.

Any suggesions?

Thanks,
Nithi Gurusamy



--
Regards,
Dilip Krishnan
MCAD, MCSD.net
dilipdotnet at apdiya dot com
Nov 20 '05 #3
In Addition to that you can also do the same programatically on page load

CJ Taylor wrote:
Try this

http://www.15seconds.com/issue/010202.htm

"Nithi Gurusamy" <ni****@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hello All:

On the click of the back button, I just want the user to see "Warning:


Page
Expired...". I just
couldn't do it in .NET. I am not sure what I am missing. I tried


everything
said in the Page.Response.Cache class. Even tried the traditional way of
doing things in the previous ASP versions. Nothing works.

This is a local website running in a Windows 2000 Server
machine. I'm Accessing the website using http:\\localhost\mysite.

Any suggesions?

Thanks,
Nithi Gurusamy



--
Regards,
Dilip Krishnan
MCAD, MCSD.net
dilipdotnet at apdiya dot com
Nov 20 '05 #4
Nothing works! I feel earlier ASP version handled it better! I am wondering
whether this problem just happened only to me.

"Dilip Krishnan" <dilipdotnet..NOSPAM..@apdiya.com> wrote in message
news:uq****************@tk2msftngp13.phx.gbl...
In Addition to that you can also do the same programatically on page load

CJ Taylor wrote:
Try this

http://www.15seconds.com/issue/010202.htm

"Nithi Gurusamy" <ni****@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hello All:

On the click of the back button, I just want the user to see "Warning:


Page
Expired...". I just
couldn't do it in .NET. I am not sure what I am missing. I tried


everything
said in the Page.Response.Cache class. Even tried the traditional way of
doing things in the previous ASP versions. Nothing works.

This is a local website running in a Windows 2000 Server
machine. I'm Accessing the website using http:\\localhost\mysite.

Any suggesions?

Thanks,
Nithi Gurusamy



--
Regards,
Dilip Krishnan
MCAD, MCSD.net
dilipdotnet at apdiya dot com

Nov 20 '05 #5
Nothing works! I feel earlier ASP version handled it better! I am wondering
whether this problem just happened only to me.

"Dilip Krishnan" <dilipdotnet..NOSPAM..@apdiya.com> wrote in message
news:uq****************@tk2msftngp13.phx.gbl...
In Addition to that you can also do the same programatically on page load

CJ Taylor wrote:
Try this

http://www.15seconds.com/issue/010202.htm

"Nithi Gurusamy" <ni****@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hello All:

On the click of the back button, I just want the user to see "Warning:


Page
Expired...". I just
couldn't do it in .NET. I am not sure what I am missing. I tried


everything
said in the Page.Response.Cache class. Even tried the traditional way of
doing things in the previous ASP versions. Nothing works.

This is a local website running in a Windows 2000 Server
machine. I'm Accessing the website using http:\\localhost\mysite.

Any suggesions?

Thanks,
Nithi Gurusamy



--
Regards,
Dilip Krishnan
MCAD, MCSD.net
dilipdotnet at apdiya dot com

Nov 20 '05 #6

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

Similar topics

11
by: brendan | last post by:
Sorry this isnt a cross post .. i just didnt get any help from alt.php. I have a website which utilises post forms for navigation in some areas. Problem is, when *some* users hit the BACK button...
6
by: Biguana | last post by:
Hi, Just wondering if anyone can help here. We have a site where most of the site opens in a window with no toolbars or menubar: window.open('mypage.aspx','self','toolbar=0, menubar=0, etc,...
2
by: Nithi Gurusamy | last post by:
Hello All: On the click of the back button, I just want the user to see "Warning: Page Expired...". I just couldn't do it in .NET. I am not sure what I am missing. I tried everything said in...
2
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...
0
by: George Smith | last post by:
After logging out user still can see the data previously displayed by clicking the browser back button. How to expire the page, so that if the user clicks the browser back button, the page will...
3
by: tshad | last post by:
I get this error in some cases where I am hitting my Back button in IE. ************************************************************************* Warning: Page has Expired The page you requested...
3
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...
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: 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
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...
0
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...
0
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...
0
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,...
0
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...
0
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...

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.