ASP.NET C# Static Variables are global?

后端 未结 4 1515
执念已碎
执念已碎 2020-11-29 07:00

Today I released a small asp.net beta web application which allows internal staff to modify some product information. We started running into issues where users were overwri

4条回答
  •  无人及你
    2020-11-29 07:25

    Static variables has the same lifetime as an application domain they were created in. So if you get some wrong values it can be some problems in the application logic or else. You should use SessionState for per-user data.

提交回复
热议问题