Solved

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

Posted on 2011-03-21
5
360 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 125 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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 …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

687 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