Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
| Scenario/Problem: | You need to store data associated with a specific user across page loads. |
| Solution: | A user session generally starts when your user hits your site for the first time (and possibly logs in). |
The Session State demo in Listings 19.15 and 19.16 shows how to store a user’s name in the session and use that to change the UI.