Application Object Application
1. Use the Application object to save information
(1) Use the Application object to save information
Application ("key name") = Value
Or Application ("key name", value)
(2) Obtain Application Object Information
Variable name = Application ("key name ")
Or: variable name = Application. Item ("key name ")
Or: variable name = Application. Get ("key name ")
(3) Update the value of the Application Object
Application. Set ("key name", value)
(4) Delete a key
Application. Remove ("key name", value)
(5) delete all keys
Application. RemoveAll ()
Or Application. Clear ()
Summarize the features of the Application:
· Physical storage location: Server Memory.
· Storage type restrictions: any type.
· Scope of status usage: the entire application.
· Storage size limit: any size.
· Life cycle: the application is created at the beginning (precisely the first time the user requests a URL) and destroyed at the end of the application.
· Security and performance: data is always stored on the server, which is highly secure but not easy to store too much data.
· Advantages and disadvantages and precautions: Data retrieval is fast, but data is not automatically released due to a lack of self-management mechanism.