?
Solved

How to make the page expire when user press the back button of browser and keybord also?¿

Posted on 2011-03-21
5
Medium Priority
?
365 Views
Last Modified: 2012-05-11
hello


How to make the page expire when user press the back button of browser and keybord also?¿
it should by applicable in IE and FireFox.

Thanks
salim
0
Comment
Question by:TUS11
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 8

Expert Comment

by:WesWilson
ID: 35180541
0
 
LVL 13

Expert Comment

by:devlab2012
ID: 35180584
add the following lines in the <head> section:

<meta name="pragma" value="no-cache" />
<meta name="expires" value="-1" />
<meta name="cache-control" value="no-cache" />
0
 
LVL 13

Expert Comment

by:devlab2012
ID: 35196249
Use of meta tags as described in above comment is not correct. The correct use is like this:

<meta http-equiv="pragma" value="no-cache" />
<meta http-equiv="expires" value="-1" />
<meta http-equiv="cache-control" value="no-cache" />
0
 
LVL 8

Accepted Solution

by:
WesWilson earned 375 total points
ID: 35427509
Did one of these solutions solve your problem? If you still have a problem, please explain so someone can help you.
0
 

Author Closing Comment

by:TUS11
ID: 35938392
bvcbv
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This very simple solution applies to a narrow cross-section of the "needs to close" variety. In this case, the full message in Event Viewer was in applog, Event ID 1000: Faulting application iexplore.exe, version 8.0.6001.18702, faulting module …
The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question