asp.netlifecyclehttpapplicationhttpapplicationstate

Can multiple users share an HttpApplication instance?


I've used the table at the top of this article as a reference. I have three questions:

1 - Can multiple users (from different physical locations) ever share an HttpApplication instance? If so, does this happen by default?

2 - Can multiple users (from different physical locations) ever share an HttpApplicationState instance? If so, does this happen by default?

3 - Can multiple users of an ASP.NET application ever share a singleton instance or a static variable value? If so, does this happen by default?

Thanks for clearing this up.


Solution

  • The answer to all six of your question is yes.

    Per-user state should be stored in the Session.