An asp-based application consists's a virtual directory on a WEB server and all folders and files within that virtual Directory. For more information about virtual directories, refer to your Microsoft Web Server online documentation.
An application can is a simple home page; It can include a number of dynamic elements, such as the custom home page of the msn& #8482; Online service (www.msn.com); Or it can consist of a complex set of interrelated pages and logic.
When your use asp-based applications, your are able to the maintain state. The state is the ability to retain information. can use ASP to maintain two types:
Application state, in which all information pertaining to a application is available to all users of the.
Session state, in which information are available only to a user of the a specific session.
The ASP tools you have to manage state are and application built-in objects.
Using the session and application Objects
You can use the ASP built-in objects sessions and application to extend the functionality of your asp-based.
Use the Sessions object to manage information for a user, the user is using a application. A session belongs, in effect, to a single user. The Application object is used to store common information which can be shared with between all users ' a single asp-based appl Ication.
Using the Global.asa File
Each asp-based application can have one global.asa file. (The file name extension. ASA stands for "Active Server application.") This file must is stored in the root directory of the application. ASP reads a Global.asa file when:
The WEB server receives the POST-STARTUP request for any. asp file in a given application; The "is", after the Web server starts, the the "the", "the", "the", "a" Application causes ASP to read the Global. ASA file for that application.
A user who does not have a session requests a. asp file in a application.
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.