stop client side caching

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am using the loginview control on my pages where a logged in user gets a
different nav control than a non logged in user. The problem is, that if the
client's IE page caching is set to automatic, the non-logged in view is shown
to a logged in user if they had previously hit the page logged out.

If caching is never, this problem doesn't occur. Any suggestions on how to
get around this?

Thanks
 
Try 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