Persisting Session Information: Page 2

When this page loaded, a quick check was performed to determine if a persistent boolean attribute existed, and if it was set to true. Since it was true, the persisted data was restored and the persistent boolean was set to false.

Two boolean values are used to monitor the state of the page; one local and one persistent. The local boolean will be used to determine if the persistent boolean should be set to true again. The persistent boolean will only be set to true if the "Save and Leave" button is clicked, thus allowing the third page to load.

First Entry:
Enter some text:


This page will store three attributes in your cache: 1) whatever is entered in the text fields, and 2) a boolean (true/false). When the first page loads, it will check to see if the persistent attributes exist and, if so, will automatically remove them. If you are concerned about this information still residing on your computer, click the "Remove Persistent Values" button.

Right-click anywhere on the screen to view the source.




© 1999 Microsoft Corporation. All rights reserved. Terms of use.