Explain the various modes of storing ASP.NET session.Types of sessions:
InProc: The default way to use sessions. InProc is the fastest way to store and access sessions.
OutProc:
i. State server: 15% slower than InProc. Session is serialized and stored in aspnet_state.exe process. Stateserver sessions can be stored on a separate machine too.
ii. SQL Server: 25% slower than InProc. Used when data is to be serialized and stored in SQL Server database.What are the different types of Session state management options available with ASP.NET?In-Process state management:
- The In-Process type of Session state management stores the session in memory on the web server. - In order to have a user always reconnect to the same web-server, a sticky server is needed.
Out-of-Process state management:
- Out-of-Process Session state management stores data in an external data source. - The external data source may be a SQL Server or a State Server service. - Out-of-Process state management requires the objects in a session to be serializable. .
|