This article is a mirror article of machine translation, please click here to jump to the original article.

View: 14455|Reply: 0

[ASP.NET] I did a small experiment on how to understand that HTTP is a stateless protocol

[Copy link]
Posted on 4/14/2016 5:33:03 PM | | | |







First, the collection is a reference type !!

Experimental steps: 1: What does the test output 2: What does the output of Test2 3: What does the output of the test 4: What does the output of the test 2 5: what the output of the test is 6: what the output of the test is accessed from a different browser 7: what is output by accessing the output of Test2 in a different browser

The above steps, followed in turn, we will find。。。。。。。。

Test always outputs 0 Test2 always outputs 1

Since HTTP is stateless, every time you visit, he will think you are a new visitor and he will not record any values, so you know




Previous:.net mvc an Action for HttpGet and HttpPost
Next:error C2220: Warning is considered an error - no "object" file was generated
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com