Expire Content

  • Thread starter Thread starter Carlos Cordon
  • Start date Start date
C

Carlos Cordon

How do I expire page content.

I have a site in wich the users log on and can make some queries to a
database, but after the log out if the hit the back button all the
information is displayed and it shouldn't. How can I expire that content?

Thanks
 
To prevent caching use this code:

Response.Expires = 0
Response.Cache.SetNoStore()
Response.AppendHeader("Pragma", "no-cache")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top