473,938 Members | 43,642 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Expire Pages in Browser?

How do you expire pages so that the user can't hit the back button on his
browser in Internet Explorer? I've tried the meta tag in the header that has
an expires = 0 and also in vb.net Response.Expire s = 0. Neither of these work
in IE. What will expire pages so there are no pages to go back to in the
cache in IE?

This is the meta tag:
<meta http-equiv="expires" content="0">
<meta http-equiv="pragma" content="no_cac he">
<meta http-equiv="Cache-control" content="no_cac he">

This does not work in IE.
--
Chris Davoli

Oct 3 '06 #1
2 2879
Have you tried this?

Response.Cache. SetNoStore()

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"Chris Davoli" <Ch*********@di scussions.micro soft.comwrote in message
news:DB******** *************** ***********@mic rosoft.com...
How do you expire pages so that the user can't hit the back button on his
browser in Internet Explorer? I've tried the meta tag in the header that
has
an expires = 0 and also in vb.net Response.Expire s = 0. Neither of these
work
in IE. What will expire pages so there are no pages to go back to in the
cache in IE?

This is the meta tag:
<meta http-equiv="expires" content="0">
<meta http-equiv="pragma" content="no_cac he">
<meta http-equiv="Cache-control" content="no_cac he">

This does not work in IE.
--
Chris Davoli

Oct 3 '06 #2
Yes, I have tried that. What I need is for the page to be deleted from the
browser cache.

Or, does this code you gave me reload the page, so that any personal data
that he typed in the page on it initially, will not show up. (we have HIPPA
regulations that says after the doctor goes away from the computer, sombody
else shouldn't be able to see his data.

--
Chris Davoli

"Steve C. Orr [MVP, MCSD]" wrote:
Have you tried this?

Response.Cache. SetNoStore()

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"Chris Davoli" <Ch*********@di scussions.micro soft.comwrote in message
news:DB******** *************** ***********@mic rosoft.com...
How do you expire pages so that the user can't hit the back button on his
browser in Internet Explorer? I've tried the meta tag in the header that
has
an expires = 0 and also in vb.net Response.Expire s = 0. Neither of these
work
in IE. What will expire pages so there are no pages to go back to in the
cache in IE?

This is the meta tag:
<meta http-equiv="expires" content="0">
<meta http-equiv="pragma" content="no_cac he">
<meta http-equiv="Cache-control" content="no_cac he">

This does not work in IE.
--
Chris Davoli


Oct 4 '06 #3

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

Similar topics

2
22877
by: Angelos | last post by:
Anyone knows how to expire a session after a specific time for a specific SITE and not globally ? I want if the user forgets his browser window open to automatically expire the session after 20 mins more or less....
2
1369
by: michaaal | last post by:
Is this an accurate article on making web pages expire? http://www.developerfusion.com/show/1010/14/
13
2341
by: Veeresh | last post by:
I am using .Net 1.1. How to expire an .aspx page? I think I have to use HttpCachePolicy class for this. But not sure how to use and where to this code to work. Is it in Page_load event. Thanks Veer
4
2641
by: Big E | last post by:
I set a cookie at a login screen that sets various information. When users are finished with the application most of them close the browser instead of clicking logoff. How do I clear or remove cookies when the shut down the broswer. I know how to remove them like this: Private Sub RemoveCookies() If Request.QueryString("AcceptsCookies") Is Nothing Then Response.Cookies("loginInfo").Expires = DateTime.Now.AddDays(-1) End If
4
2361
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!
4
1849
by: kurt sune | last post by:
Hi, I have checked this newsgroup and goggled in order to find out how to expire the IE browser cache in order to ALWAYS get this text 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...
2
1954
by: Gonzosez | last post by:
How can I set my cookies to expire when the the user leaves the site?
1
12707
by: gvrajkumar | last post by:
Hi Popup window is opened and after some time session has expired. After session expire, if the user tries to make any actions on the popup page the user is redirected to login.jsp page. What I want is when the user tries to make any actions on the expired popup I want the popup window to be closed and parent window to be refreshed with the login.jsp page. Basically I want identify the popup window.
5
6811
by: =?Utf-8?B?Y2hlY2tyYWlzZXJAY29tbXVuaXR5Lm5vc3BhbQ== | last post by:
I have a site which I secure with forms authentication. When the user's sign on and hit one of the secure pages, I have this line in my code to ensure that the browser does not cache the page; and someone cannot navigate back to an cached image of the page in theory after the user has signed off. Response.Cache.SetCacheability(HttpCacheability.NoCache); This works all right, except when the user decides to use the browser's back...
0
10126
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11512
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11098
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
11282
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
10651
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...
1
8209
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6072
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6286
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4900
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

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.