Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

meaning of web is stateless and http is statless protocol?

Tags:

.net

http

asp.net

Please guide what is meaning by Web is stateless in simple words ?

Kindly also explain what is meaning by HTTP is stateless protocol ?

thanks

like image 926
haansi Avatar asked Apr 21 '10 04:04

haansi


1 Answers

Stateless meaning:

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:

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.

OR it can be simple web definition:

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.

like image 161
Muhammad Akhtar Avatar answered Nov 10 '22 00:11

Muhammad Akhtar