I have a web service with some data that I need to pass across sessions. I was thinking of using the application object.
1) Is this a good idea?
2) Some of the data will grow old and I’d like to purge
it out so that the application object doesn’t constantly
grow. What is the best way to do this?
Thanks
If your appdomain recycles, this data will be lost – will that be a problem? If so, you should probably consider persisting this data somewhere else, probably a DB…
You could then cache this data and retrieve from the DB if the cache data is missing.