How to Make a Web Page Expire

Save

If users of your website will be entering very sensitive data, you may want to add a security feature to your pages to make them expire automatically. By adding the expiration meta tag to your pages, user data will not be retrievable when someone uses the back button on a browser. Instead, the page will indicate that the session has expired and needs to be restarted.

Things You'll Need

  • Active web server
  • Web editing application
  • Open the HTML code of the web page you want to make expire.

  • Go to the "<head>" tags at the top of the HTML code.

  • Insert your cursor between the opening and closing "<head>" tags and add a new blank line.

  • Type "<META HTTP-EQUIV="Expires" CONTENT="-1">" between the head tags.

  • Save the HTML code and upload it to your active web server. Now, when a web browser loads the web page, it will recognize that the current session should expire when the user goes to another page.

References

Promoted By Zergnet

Comments

You May Also Like

Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

M
Is DIY in your DNA? Become part of our maker community.
Submit Your Work!