Static property in ASP.Net based on session will be shared across all users?
asp.net, c#, static-members
Solution
Property1 is only in scope for the user's current session. The static part doesn't change that since it's just a wrapper around session that points to user specific data.
Property2 is a regular static property that is the same for all users.
Problem
For following 2 static properties, will both be shared across all users in an ASP.net web site? It seems Property2 will be shared among all users of the ASP.Net web site, but not sure about Property1. ``` public static object Property1 { get { return HttpContext.Current.Session["some_key"]; } set { HttpContext.Current.Session["some_key"] = value;} } public static object Property2 { get;set;} ```