Instantiated Object Lifetime
<p>I'm designing a new ASP.NET website (ASP.NET is somewhat new to me so forgive stupid questions) and I was wondering about the life time of an object that I would instantiate in the Global.asax's <code>Application_Start</code> event (i.e. <code>new myClass()</code>). I would refer to the object through a static pointer somewhere.</p>

<p>The reason why I was thinking of doing this was to create a master object for the running ASP.NET application that would track some pieces of information per user (browser), even though I'm storing much of the info in my database. In other words, I wanted to use an array of sessions indexed by a user key, and this array would be an element in <code>myClass</code> that, as mentioned above, gets instantiated in the Global.asax's <code>Application_Start</code> event. I'll regularly trim my array to account for users who have gone off or haven't done anything after NN minutes.</p>

<p>Or, is this just nuts because objects instantiated during the application's life are not reliable in terms of lifetime.</p>

<p>Thanks in advance!</p>

<p>Kind regards,
Derek</p>
