Session is a connection from a single client to the server for a given span of time. Session is specific for a single user. Each user is assigned a unique session ID when requests are sent from Browser to Server.
Session : Session is a connection from a single client to the server for a given span of time. Session is specific for a single user. Each user is assigned a unique session ID when requests are sent from Browser to Server.
The default timeout of the Session is 20 minutes, but you can increase this timeout to the time you want to assign for the user by setting in web.config file.
Where Session is Stored:
It depends upon how you configure your session state to store. By default it is stored in the "InProc"
There are three locations where a session can be stored :
1)InProc : If you set this mode, then session is stored in Web Server worker process(aspnet_wp.exe). This is by default and the performance is fast because it resides in the same worker process.
2)StateServer : If you set this mode, then session is stored in a separate process in the server called aspnet_state.exe.
3) SqlServer : If you set this mode, then session is Stored in SQL Server.