Web的含义是无状态的,而http是无状态的协议? [英] meaning of web is stateless and http is statless protocol?
问题描述
请用简单的语言来指导Web的含义是无状态的吗?
Please guide what is meaning by Web is stateless in simple words ?
还请解释HTTP是无状态协议的含义吗?
Kindly also explain what is meaning by HTTP is stateless protocol ?
谢谢
推荐答案
无状态含义:
它不会跟踪下一个会话的配置设置,事务信息或任何其他数据.当程序不维护状态"(无状态)时,或者系统的基础结构阻止程序维护状态时,它将无法将有关上一个会话的信息带入下一个会话,例如用户选择的设置或在此期间出现的条件处理.
It does not keep track of configuration settings, transaction information or any other data for the next session. When a program "does not maintain state" (is stateless) or when the infrastructure of a system prevents a program from maintaining state, it cannot take information about the last session into the next, such as settings the user chose or conditions that arose during processing.
HTTP:
HTTP协议是Web事务的通信工具,它是无状态的.将网页交付给用户后,连接将关闭.已经开发出了对策,例如使用cookie,以维护用户在网站上从一个页面移到另一个页面的状态.
The HTTP protocol, which is the communications vehicle for Web transactions, is stateless. After a Web page is delivered to the user, the connection is closed. Counter measures, such as the use of cookies, have been developed to maintain the state of a user moving from page to page on a Web site.
或者它可以是简单的网络定义:
如果后续请求-响应对之间没有关系,则协议是无状态的.服务器可以唯一地处理每个请求,而不必为客户端保留会话状态.
A protocol is stateless if there is no relation between subsequent request-response pairs. The server can handle each request uniquely and does not have to keep a session state for the client.
这篇关于Web的含义是无状态的,而http是无状态的协议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!