I am disabling the browsers chache using jsp
setHeader method , exact code is below.
response.setHeader( "Expires", "Sat, 6 May 1995
12:00:00 GMT" );
// set standard HTTP/1.1 no-cache headers
response.setHeader( "Cache-Control", "no-store,
no-cache, must-revalidate" );
// set IE extended HTTP/1.1 no-cache headers
response.addHeader( "Cache-Control", "post-check=0,
pre-check=0" );
// set standard HTTP/1.0 no-cache header
response.setHeader( "Pragma", "no-cache" );
This works fine . Everytime a user clicks
browsers back or forward button internet explorer
displays this page with the content below .
START OF IE PAGE
*****************************************************************************************************
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.
END OF IE PAGE
*****************************************************************************************************
A user click refresh button and the page is again
displyed .
I am using Internet Explorer 6.0. In Internet
Explorer 6.0 with service pack 2 IE displays different
error message. Message is shown below .
START OF IE PAGE
*****************************************************************************************************
The page cannot be displayed
The page you are looking for is currently
unavailable. The Web site might be experiencing
technical difficulties, or you may need to adjust your
browser settings.
--------------------------------------------------------------------------------
Please try the following:
Click the Refresh button, or try again later.
If you typed the page address in the Address bar, make
sure that it is spelled correctly.
To check your connection settings, click the Tools
menu, and then click Internet Options. On the
Connections tab, click Settings. The settings should
match those provided by your local area network (LAN)
administrator or Internet service provider (ISP).
See if your Internet connection settings are being
detected. You can set Microsoft Windows to examine
your network and automatically discover network
connection settings (if your network administrator has
enabled this setting).
1. Click the Tools menu, and then click Internet
Options.
2. On the Connections tab, click LAN Settings.
3. Select Automatically detect settings, and
then click OK.
Some sites require 128-bit connection security. Click
the Help menu and then click About Internet Explorer
to determine what strength security you have
installed.
If you are trying to reach a secure site, make sure
your Security settings can support it. Click the Tools
menu, and then click Internet Options. On the Advanced
tab, scroll to the Security section and check settings
for SSL 2.0, SSL 3.0, TLS 1.0, PCT 1.0.
Click the Back button to try another link.
Cannot find server or DNS Error
Internet Explorer
END OF IE PAGE
*****************************************************************************************************
I would like to display my own page which informs user
not to use browsers back ot forward button rather than
IE's default page. Is this possible ?
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]