What is difference between Session and Application object in ASP.NET?
Sanjay Irnai
Application State : Data stored in the application object can be shared by all the sessions of the application. Application object stores data in the key value pair. Session State: Session State stores session-specific information and the information is visible within the session only. ASP.NET creates unique sessionId for each session of the application. SessionIDs are maintained either by an HTTP cookie or a modified URL, as set in the applications configuration settings. By default, SessionID values are stored in a cookie....
A session is usually for a user and only lasts from when they login to when they logout (or get timed out). Application State has a much longer lifetime, is shared between all users, and is only cleared when the process is restarted.
Session Object-This is handle particular session level information. Application Object-This is handle Entire Application level information.
What is the difference between Session Object and Application Object? PDF Print E-mail Thursday, 21 July 2011 18:28 Session object is used to store state specific information per client basis. It is specific to particular user.Application object is used to store data which available across the entire application and shared across multiple users sessions.Session has the expiration time,default time 20 mints.But application object doesn't have the expiration time.Session object is used to maintain the session of each user. If one user enter in to the application then they get seesion id if he leaves from the application then the session id is deleted.If they again enter in to the application they get different session id.But for application object the id is maintained for whole application.it doesn't differ for any user.
Application State contain Multi User global data Session State contain Single user global data
Application State contain Multi User global data Session State contain Single user global data.
http://www.c-sharpcorner.com/UploadFile/051e29/session-and-application-in-Asp-Net/