Tutorials Shared by the Internet Community
|Top Tutorials||New Tutorials||Submit||Login||Register|
Tutorial Basic Detail
Total Hits: 17566
Total Votes: 148 votes
Average Rating: 3.82 out of 5
Category: ASP/Cookies and Sessions
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.