State management on the Web

Source: Internet
Author: User
In the previous sections, the ASP's approach to accessing a customer request and generating responses is described in this chapter, which discusses the other two objects of ASP. is the application and the Session object. These two objects are not directly related to the management of requests and responses, but more to the management of the environment in which the ASP Web pages are run.
One of the common problems associated with building a Web site or Web application is that there is no state when using the HTTP protocol. The state provides variable values, objects, and other resources related to a specified user, and can be used by any routines in the application, and the state can do some work when writing a generic, customer-based application in a programming language such as VB or C + +. However, the web does not provide this capability. In this chapter, readers will see why and how to avoid this problem.
Some terminology and technical issues are also covered in this chapter. It has so far simply discussed "Web applications" in this book, but does not really understand or exactly define exactly what they are. This book also refers to the "user session", there is no corresponding relatively complete description. This is intentionally omitted because they are closely related to the ASP's application and session. The ASP's application and session objects are described below.
The main contents of this study:
· What Web applications are, and how they relate to ASP application objects.
· How the ASP automatically creates and manages applications and sessions.
· Functions provided by the application and session objects.
· How to put application and Seesion objects into an ASP Web page.
First of all, the core problem of the whole content: state.
3.1 State management on the Web
Many developers have never considered the concept of State before transferring an application to the Web. As mentioned earlier, the web is a stateless environment. So you should explore what states are and how you can avoid problems.
Exact definition of 3.1.1 State
In a single-user program, when you create an executable application, such as using VB to create an. exe file, you can declare a global (or public) variable and access it anywhere in your code. At all times the application runs, the time value is always valid and accessible.
For a traditional client/server solution, such as a system in which a client-based application accesses a server-based database engine, each client establishes a connection to the server and the database application. This connection is usually established by validating the user's methods.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.