rejetto forum

Make a page expire

Foggy · 2 · 7290

0 Members and 1 Guest are viewing this topic.

Offline Foggy

  • Tireless poster
  • ****
    • Posts: 806
    • View Profile
Does anyone know of a way that I can make the browser say the page has expired when I click the back button?


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2068
    • View Profile
you can use this meta balise 

<META HTTP-EQUIV="Expires" CONTENT="Mon, 30 Jun 1999 14:30:00">

with %timestamp% you can detect the begining of time when server give web page.

by example:
<HTML>
<META HTTP-EQUIV="Expires" CONTENT=expire_date()>

<script ......>
function expire_date()
  {     expire_date=%timestamp% + delay}
</script>


 make test i have not testing that