What are ASP.NET session and compare it with classic ASP session
The ASP.NET session caches per user session state. It basically uses "HttpSessionState" class.
The limitations in the classic ASP sessions are as follows:-
1) The ASP session state is fully dependent on IIS process very heavily. So if IIS restarts ASP session variables are also recycled.ASP.NET session can be independent of the hosting environment thus ASP.NET session can maintained even if the IIS reboots.
2) The ASP session state has no inherent solution to work with the Web Farms.ASP.NET session can be stored in the state server and SQL SERVER which can support many server.
3) The ASP session only functions when the browser supports cookies.The ASP.NET session can also be used with browser side cookies or independent of it.