Tuesday, March 9, 2010

Data sharing with sessions.

"Session" is known as a collection object and is closely related to "Application" (also a collection object). Session state stores variables and objects for one particular user for the duration of that users current visit, while the application state shares the variables and objects of an application between all users of the application at the same time.

The session state is stored on the server and allocates each user free memory for the temporary storage of objects. Whilst session state objects will linger after the user leaves the site, the session variables will disappear after a certain period of time.

This post was written with input from dev newsgroups, and also sitepoint's "Build Your Own ASP.NET3.5 Web Site using C# & VB" by Christian Darie & Wyatt Barnett (3rd Edition) pp 178 & 187-188.

No comments:

Post a Comment