Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

forced refresh 1

Status
Not open for further replies.

newbiepg

Programmer
Nov 6, 2002
181
IN
how can i ensure that when a user visits a page using the
browser back button he gets a dialog asking him to refresh the page?

I am looking something like using Cache control

Thanks

 
There are no cache-conrol HTTP directives that I know of that will cause a dialog to pop up. There may be a way of doing it using client-side scripting. If so, you should ask the question in one of the client-side scripting fora.

Want the best answers? Ask the best questions: TANSTAAFL!!
 
You could use a PHP variable and a meta refresh... in the head do a check like:
Code:
<?php //parse url
  if($page_name != &quot;this page&quot;)
     print(&quot;<META HTTP-EQUIV=Refresh CONTENT='0; URL=http://www.somesite.com/thispage.html?page_name=thispage'>&quot;);
?>
The code above is incomplete, just trying to give you some ideas...
 
jstreich

that is what I should have done
i can do a check whether the last page was
the current page using javascript and if not force a refresh.

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top