Page #62 (Chapter 8 - Maintaining State in IIS Applications)

Chapter 8 - Maintaining State in IIS Applications

Visual Basic Developers Guide to ASP and IIS
A. Russell Jones
  Copyright 1999 SYBEX Inc.

Summing Up State Maintenance
In this chapter, you've seen several ways to maintain state information for single users or the entire application. You've also seen ways to cache data on the client browser and on the server. The caching mechanisms available to you range from single values to complete tables.
You can easily overuse these methods. My advice is, don't store any more information than you have to. Although caching all the data is tempting, with practice you'll find a good balance between caching data in memory and storing/retrieving data from a database. Often, it's useful to cache data during specific page sequences. There may be several such sequences, each of which comprises only a part of your application, and each may require that you cache different information. You should use the Session and Application Contents methods to find and remove data that you no longer need.



Visual Basic Developer[ap]s Guide to ASP and IIS
Visual Basic Developer[ap]s Guide to ASP and IIS
ISBN: 782125573
EAN: N/A
Year: 2005
Pages: 98

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net