473,387 Members | 1,664 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,387 software developers and data experts.

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.Expires = 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_cache">
<meta http-equiv="Cache-control" content="no_cache">

This does not work in IE.
--
Chris Davoli

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

Response.Cache.SetNoStore()

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"Chris Davoli" <Ch*********@discussions.microsoft.comwrote in message
news:DB**********************************@microsof t.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.Expires = 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_cache">
<meta http-equiv="Cache-control" content="no_cache">

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*********@discussions.microsoft.comwrote in message
news:DB**********************************@microsof t.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.Expires = 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_cache">
<meta http-equiv="Cache-control" content="no_cache">

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
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...
2
by: michaaal | last post by:
Is this an accurate article on making web pages expire? http://www.developerfusion.com/show/1010/14/
13
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...
4
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...
4
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
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...
2
by: Gonzosez | last post by:
How can I set my cookies to expire when the the user leaves the site?
1
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...
5
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;...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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
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,...
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...

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.