Retrieving variables from application object
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 8886
Total Votes: 89 votes
Category: ASP/Cookies and Sessions
Submitted on: 2008-03-06 08:45:10
Submitted By: Devesh Khanna
Description:In this tutorial, we will take a look at Application Object. When you've used Application Object, all ASP pages can store and retrieve information. The information in Application Object stored in server and all ASP pages can access the information. The main diffrences between Session Object and Application Object is Application Object stores information in server memory.
Let's store some information:
Application("SiteName") = "Developer Tutorials"
Let's retrieve information from object :
SiteName = Application("SiteName")
When we need to use Application Object:
Common usage of Application Object is to share information in all sessions. As we have examined in our sample code,
we put our site name in an oapplication object named as SiteName and shared it all pages calling our SiteName object. More detail...