Sanjay Irnai
What is difference between Session and Application object in ASP.NET?
Posted by Sanjay Irnai in ASP.NET Programming on Nov 05, 2012
  • 0
  • 5
  • 15824
Do you know the answer for this question? Post it below.
Posted by shankar kumar on Feb 07, 2014
  • 1

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....

Posted by shankar kumar on Feb 07, 2014
  • 0

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.

Posted by Satyapriya Nayak on Nov 15, 2012
  • 0

Posted by Yogesh Sharma on Nov 09, 2012
  • 0

Session Object-This is handle particular session level information.
Application Object-This is handle Entire Application level information.

Posted by Karthikeyan Palanivel on Nov 07, 2012
  • 0

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 doesn't differ for any user.