Asp.net - Do changes to session objects persist?

后端 未结 4 1143
半阙折子戏
半阙折子戏 2021-01-18 06:06

I\'m using the session to hold a custom object UserSession and I access the session like this:

UserSession TheSession = HttpContext.Current.Session[\"UserSes         


        
4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-18 07:02

    It doesn't need to reassign the object. Because both of them are pointing to same instance in memory

提交回复
热议问题