Session object is used to store state specific information per user basis.Session object can be configured 3 ways based on availability and scalability of web application.
In Process Mode:
This is default mode and useful for small application which is hosted on single server.
Out-of-process session mode(State server mode):
This mode is useful for highly available and scalable applications.Session state is stored in a process called aspnet_state.exe that runs as a windows service which listens on TCP port 42424 by default.
Sql-Backed Session State:
Session can also be stored in sql server database.Storing session in DB offers resilience that can serve session to a large web farm that persists across IIS restarts.SQL based session state is configured with aspnet_regsql.exe.
Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!