Does static reference to HttpContext.Current.Session return same session for all users?

后端 未结 2 593
一向
一向 2021-01-06 03:28

Is there room for issue in the following code in terms of multiple users of the same web application? I mean, I know that a purely static string will be shared across all se

2条回答
  •  猫巷女王i
    2021-01-06 03:46

    Your property is static. This is actually the cause of sharing the property between users.

    See Scope of static Variable in multi-user ASP.NET web application for more details.

提交回复
热议问题