473,466 Members | 1,314 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 1128
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
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
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...
1
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
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

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.