There is 开发者_如何学运维a timeout for Session object of HttpSessionState that can be set. I want to see if we can make HttpApplicationState timeout too?
Using the Cache, this can be achieved very easy.
No, you can't make it expire this way.
Why? Because it is supposed to be valid so long as the application is running.
If you want to make an application state value that will expire, you can implement such a function yourself, using one of the timer classes.
精彩评论