Is it a good practice to avoid using Session State in ASP.NET MVC? If yes, why and how?

后端 未结 8 2335
情歌与酒
情歌与酒 2020-11-27 13:38

It\'s not explicitly written somewhere but I felt so after reading few blogs on ASP.NET MVC. Just got curious and thought of asking it here.

UPDATE:

8条回答
  •  清歌不尽
    2020-11-27 14:32

    Use TempData instead of HttpSessionState. TempData is Mvc's wrapper of Session state.

提交回复
热议问题