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

后端 未结 8 2340
情歌与酒
情歌与酒 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:22

    What would it mean to avoid using Session State for you? Do you need to conveniently store small amounts of user data across requests? If so, how else would you do it?

    I'm not sure what your alternatives to Session State would be. Using Session State as it exists, out of the box, in ASP.NET is far more desirable to rolling your own alternative, especially from a security perspective.

提交回复
热议问题