What is ASP.NET Session-State Management & levels of configuration?


ASP.NET improves upon ASP session-state management by moving to an out-of-process model. By having all web servers in the farm pointing to a common server that hosts the out-of-process state manager, the web client can be redirected around the farm without losing the session states. By using an out-of-process model, we no longer have the problem of losing session states when the IIS process is cycled.

ASP.NET Session-State Management & levels of configuration


  • ASP.NET improves upon ASP session-state management by moving to an out-of-process model.

  • By having all web servers in the farm pointing to a common server that hosts the out-of-process state manager, the web client can be redirected around the farm without losing the session states

  • By using an out-of-process model, we no longer have the problem of losing session states when the IIS process is cycled

  • This means that if the web server application crashed for whatever reason and restarted within the session time-out duration, the web clients could still have all their session states intact

  • Of course, if the out-of-process state manager crashed, that is a whole different issue

  • This leads to the next improvement of ASP.NET—the ability to persist session state to a database


  • There are two levels of configuration:


    Machine level:
  • Machine-level configuration associates with the machine.config file stored in WinNT\Microsoft.NET\ Framework\\CONFIG\machine.config,

  • Application Level:
  • while the application-level configuration uses the web.config file in the application root directory

  • The application-level configuration overrides the machine -level configuration

  • Comments

    Author: Ali30 May 2011 Member Level: Silver   Points : 1

    SESSION:

    If user inserts some information, and move to the next page, that data will be lost and user would not able to retrieve the information. Session provides that facility to store information on server memory.

    State Management using session is one of the asp.net best features, because it is secure, transparent from users and we can store any kind of object with in it.
    Session Mode and State Provider
    • InProc
    • StateServer
    • SQLServer
    • Custom
    Session Event
    There are two types of session events available in asp.net
    • Session_Start
    • Session_End



  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: