in asp.net web application if I want to store variable in a static object is that right? I don't want that this object will share its value with another request.
public static object Objects
{
get
{
if (HttpContext.Current.Items["Objects"] != null)
return (object)HttpContext.Current.Items["Objects"];
else
{
HttpContext.Current.Items["Objects"] = new object();
return new object();
}
}
set { HttpContext.Current.Items["Objects"] = value; }
}
THX