Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 19. ASP.NET > Maintain User Data in a Session

Maintain User Data in a Session

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.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial