Application, server, and Session objects

Source: Internet
Author: User

(a) application Object        

Application object is Web on an application-level object, which can be a set of ASP files, these ASP files work together to accomplish a task. The user stores and accesses variables from any page.

Application objects contain data that can be used by all users of the application and can be persisted during the site run. This information can be changed in one place, and these changes are automatically reflected on all pages.


Application event for the object:



(ii) Session

Sessionrepresents a "session" between the server and the client, and the action time from the user to a specificWebpage begins, to which the user leavesWebsite, or use code in your program to terminate aSessionend. SessionThe relationship with the user is one by one corresponding, the system for each visitor has set up a separateSessionobject that is used to storeSessionvariable, and the individual visitor'sSessionobjects do not interfere with each other .

           talked aboutSessionI have to talk about it.Cookies, because they are closely related. Sessionuse requires that the user's browser must supportCookiesIf the browser does not support the use ofCookies, or set to disableCookies, then you will not be able to useSession.

I used to learn about the news release system Cookies with the Session also a detailed summary of the specific details please see: http://blog.csdn.net/xdd19910505/article/details/39140163

Application with the Session the Relationship

           application and session application session session session session application


Application with the Session The difference:

theapplication is global and session-level is the same as the application scope

Survival time is different,application longer than the Session

(iii) Server

Server object obtains information about the server object behind the current request, provides access to methods and properties on the server, and most of the methods and properties are serviced for the application.


Server the main properties and methods:

Property:

Method:


Summarize:

              ASP. NET provides built-in objectsexceptApplication,Session,Serverstillhave aPage,Request,Response,Application,Session,Server,Mailand theCookies. these objects make it easier for users to gather information sent through a browser request, respond to a browser, and store user information for other

The delivery of specific state management and page information.




Application, server, and Session objects

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.