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

后端 未结 2 583
一向
一向 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:40

    HttpContext.Current always returns the context of the current request (if there is a current request).

    Since each user will be executing a different request, each context will be different.

提交回复
热议问题