Why is MVC stateless - How to explain?

前端 未结 4 1768
时光说笑
时光说笑 2020-12-19 12:21

While explaining concepts of ASP.NET MVC to my students

MVC is stateless. It is built on top of another stateless protocol - HTTP and HTTPS

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-19 12:53

    MVC is not stateless, HTTP is.

    HTTP being stateless doesn't mean it is fire and forget. The client does wait for the response. It is stateless in the sense that two successive requests have no relation whatsoever.

    State can be emulated using sessions, for example using cookies.

提交回复
热议问题