Duration: 16 minutes
Summary: In this video, we introduce the session state. If you find that cookies are too small to store the information you need, then you can use sessions instead. Like the cookie, the session is scoped per user. You use the Session object to add items to session state. Those items are stored in the web server not the browser. To track the session for a specific user, a cookie with a unique id is stored in the browser automatically. A session is not limited to a particular size (although you have to be careful because of you store a large dataset for a particular user and you have 1000 users hitting the site, then you end up with 1000 copies of that dataset in memory).
We will see how to store and retrieve values from a session object, and also how to handle session start and session end events.
Methodology of the development of example: Good coding standard and simplified design to illustrate the key points.
Technology Used: ASP.NET and Visual Studio 2010Keyword: ASP.NET 4, Visual Studio 2010, Session