| | Save and run the WebClass. You should see the database counter increment just like the other counters. Try storing some other state values in the database. That is a lot of work for a counter, but there is a point to it. By this time, you should have a good idea of which type of state maintenance you want to use for simple values such as counters. You should also recognize that only the Session variable loses its value if you start and stop the WebClass, not the cookie, QueryString, form, or database values. It's obvious why the cookie, QueryString, and form values don't lose their data, but it's less obvious why the database value remains constant. The reason is that the browser retains a Session cookie. The ASP engine recognizes that and creates a new Session with the same SessionID, thus the data exists in the database and therefore remains constant. | | |