View Single Post
  #5 (permalink)  
Old April 28th, 2009, 04:51 PM
Corsair Corsair is offline
Authorized User
Join Date: Apr 2009
Posts: 41
Thanks: 1
Thanked 2 Times in 2 Posts

Wouldn't you be able to overcome the security issue with a little extra code? Perhaps in the global.asax's Application_End? Just call Cache.Remove(key) for each item in the cache.

Or set an expiration on the data in the cache (going off the top of my head here; don't remeber the exact way to do that).

For me, unless the page is light on controls and/or data, I prefer to avoid ViewState, but that's just a personal preference. At least until someone convinces me solidly one way or the other. :)