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

Automatic refresh when users selects "Back" button in Internet Explorer

Hello,

I am using the following code to prevent users to see the previous pages:

Response.CacheControl = "no-cache";
Response.AddHeader( "Pragma", "no-cache" );
Response.Expires = -1;

When users select the "Back" button in IE, they see the message:

"Warning: Page has Expired The page you requested was created using
information you submitted in a form. This page is no longer available. As a
security precaution, Internet Explorer does not automatically resubmit your
information for you. To resubmit your information and view this Web page,
click the Refresh button."

I am wondering if there is a possibility to automatically referesh the page
so users would not need to press the "Refresh" button. The application is
for intranet so there is no a security concern.

Thanks for any hints,

Leszek Taratuta
Nov 18 '05 #1
2 3780
Not likely, this is an Browser feature (it is just listening to the fact that you are expiring the cache immediately). I don't see how any code could control this, a better option would be to discourage the use of the back button among your users, and provide a "back" functionality built into the page.

"Leszek Taratuta" <ad*@taratuta.net> wrote in message news:Oh**************@TK2MSFTNGP10.phx.gbl...
Hello,

I am using the following code to prevent users to see the previous pages:

Response.CacheControl = "no-cache";
Response.AddHeader( "Pragma", "no-cache" );
Response.Expires = -1;

When users select the "Back" button in IE, they see the message:

"Warning: Page has Expired The page you requested was created using
information you submitted in a form. This page is no longer available. As a
security precaution, Internet Explorer does not automatically resubmit your
information for you. To resubmit your information and view this Web page,
click the Refresh button."

I am wondering if there is a possibility to automatically referesh the page
so users would not need to press the "Refresh" button. The application is
for intranet so there is no a security concern.

Thanks for any hints,

Leszek Taratuta

Nov 18 '05 #2
Thanks a lot.

I was just wondering if it would be possible because I came across the
following article:

http://support.microsoft.com/default...NoWebContent=1

that says:

"This page is using 'Cache-Control: no-cache.' This page should not be
cached for any reason whatsoever. Access to the page via the Back button
should
pull the page back from the server".

Thanks,
Leszek

"Raterus" <mo*********@suretar.reverse> wrote in message
news:ue**************@TK2MSFTNGP11.phx.gbl...
Not likely, this is an Browser feature (it is just listening to the fact
that you are expiring the cache immediately). I don't see how any code could
control this, a better option would be to discourage the use of the back
button among your users, and provide a "back" functionality built into the
page.

"Leszek Taratuta" <ad*@taratuta.net> wrote in message
news:Oh**************@TK2MSFTNGP10.phx.gbl...
Hello,

I am using the following code to prevent users to see the previous pages:

Response.CacheControl = "no-cache";
Response.AddHeader( "Pragma", "no-cache" );
Response.Expires = -1;

When users select the "Back" button in IE, they see the message:

"Warning: Page has Expired The page you requested was created using
information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you. To resubmit your information and view this Web page,
click the Refresh button."

I am wondering if there is a possibility to automatically referesh the page so users would not need to press the "Refresh" button. The application is
for intranet so there is no a security concern.

Thanks for any hints,

Leszek Taratuta

Nov 18 '05 #3

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

Similar topics

6
by: Mark | last post by:
I have two dropdown lists. Both have autopostback set to true. In both dropdowns, when you select an item from the list, it redirects to the Value property of the dropdown. Nothing fancy. ...
5
dmjpro
by: dmjpro | last post by:
i saw some magic web pages ..... when press back button then the same page again and again reloaded ... is it possible in js ...... plz help me out ... thanx in advnace .......
0
by: Frank | last post by:
Hi, I've applied a SSL cert to a portion of my website, which brings the user to an https://mysite/login/Login.aspx page. After successfully logging in, the user can browse around freely in the...
6
by: lucyh3h | last post by:
Hi, In one of my pages, I use javascript (AJAX) to populate one mulitple select field based on user's click event on another control. I noticed that when I navigate back to this page by clicking...
1
by: ARAVIND999 | last post by:
PLEASE SEND THE SOURCE CODE FOR THE ABOVE MENTIONED STATEMENT.(i.e., HOW TO EXPIRE THE PAGE WHEN BACK BUTTON IS PRESSED)
1
by: Rob | last post by:
I know this is an old one, considering how many posts I found on it but I just wondered if any best practises had popped up recently, especially as Ajax has increased JavaScript and DHTML's...
1
rrocket
by: rrocket | last post by:
I have a page with radio buttons that either enable or disable textboxes depending on the radio button selection. When the user clicks submit the they are taken to a thank you page, but if they hit...
1
by: jeet232 | last post by:
Hi, how can I get to know when user clicks browser back button? I want my own javascript code to be executed when this happens. Also, is there a way that whenever any link in the page is clicked,...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...

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.