• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16. Sessions and the Application... > Using Application Variables

Using Application Variables

So far, we’ve discussed Session and Client variables, both of which are unique to a single client. Application variables work similarly to Session variables. The difference is that they are automatically available to all sessions and from all pages of the application.

The best use for Application variables is to store information that needs to be read often but changed rarely. This could include server file paths, database connection strings, or other constants. For the most part, Application variables are set only once, when the application starts. If you use them to store initialization information for the first client that accesses the application, subsequent clients will benefit from having the variables already in memory.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint