Sanjay Irnai
What is difference between Session and Application object in ASP.NET?
By Sanjay Irnai in ASP.NET on Nov 05 2012
  • shankar kumar
    Feb, 2014 7

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

    • 1
  • shankar kumar
    Feb, 2014 7

    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.

    • 1
  • Yogesh Sharma
    Nov, 2012 9

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

    • 1
  • Karthikeyan Palanivel
    Nov, 2012 7

    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.

    • 1
  • Ajay Kulkarni
    May, 2017 5

    Application State contain Multi User global data Session State contain Single user global data

    • 0
  • Ajay Kulkarni
    May, 2017 5

    Application State contain Multi User global data Session State contain Single user global data.

    • 0
  • Ajay Kulkarni
    May, 2017 5

    Application State contain Multi User global data Session State contain Single user global data

    • 0
  • Ajay Kulkarni
    May, 2017 5

    Application State contain Multi User global data Session State contain Single user global data

    • 0
  • Satyapriya Nayak
    Nov, 2012 15

    http://www.c-sharpcorner.com/UploadFile/051e29/session-and-application-in-Asp-Net/

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS