Explain session and its type

Sessions can be managed by two ways in case of webfarms:

1. Using SQL server or any other database for storing sessions regarding current logged in user.

2. Using State Server, as one dedicated server for managing sessions. State Server will run as service on web server having dotnet installed.

In ASP.NET there is three ways to manage session objects. one support the in-proc mechanism and other two's support the out-proc machanism.

1)
In-Proc (By Default)

2) SQL-Server (Out-proc)

3) State-Server (Out-Proc)