stop client side caching

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
 
S

Steve C. Orr [MVP, MCSD]

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

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top