asp.net singleton class
-
Hi guys Hope someone can help with a question, Im not an asp.net developer so please bare with me. I created a very simple Singleton class, that is, its not thread safe. Now I would have though that the singleton class instance would only exist for a single page request. What I am finding is that my test singleton instance persists over several http requests. I wanted to develop a very small cms with a single db instance that exists only for each page request. So really my question is how does IIS keep the singleton instance alive for several page requests. :omg:
-
Hi guys Hope someone can help with a question, Im not an asp.net developer so please bare with me. I created a very simple Singleton class, that is, its not thread safe. Now I would have though that the singleton class instance would only exist for a single page request. What I am finding is that my test singleton instance persists over several http requests. I wanted to develop a very small cms with a single db instance that exists only for each page request. So really my question is how does IIS keep the singleton instance alive for several page requests. :omg: