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