是ASP.NET MVC无状态? [英] Is ASP.NET MVC stateless?

查看:173
本文介绍了是ASP.NET MVC无状态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我听说MVC .NET是无状态的。这有什么含义,为什么它的MVC是无状态的。

I have heard that MVC .NET is stateless. What are the implications of this and why is it that MVC is stateless.

推荐答案

MVC是无状态的,因为HTTP是。有没有在HTTP,表明在会话开始或结束。

MVC is stateless because HTTP is. There is nothing in HTTP that indicates when a session starts or ends.

每一个Web框架试图通过使用Cookie或请求克服这种/响应的功能,如查询字符串或窗体POST。

Every web framework tries to overcome this by using either a cookie or Request/Response features like the query string or FORM post.

这篇关于是ASP.NET MVC无状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆