Persisting Session Information: Page 1

This example will persist information across sessions, but will only allow access to the next page if the first page is completed.

The process is accomplished by persisting the information in the text field. When the text field data is saved into an XML Store in the client's cache, a boolean value set to true is added. The boolean is used to determine if a logical progression is in progress. If the boolean is false when the second page is loaded, the user is returned to this page.

Enter some text:


This page will store two attributes in your cache: 1) whatever is entered in the text field, and 2) a boolean (true/false). When this 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 in window to view the full source code



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