Introduction
I have modified the SQL script that create the SQL Server Database for storing the ASP.NET session state.
Using the code
In web.config you must change the sessionState from "InProc" to "SQLServer" and specify the correct SQL connection string.
<!---->
<sessionState
mode="SQLServer"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="20"
/>
I have added a table named ASPStateApplications
that can be used to set the applications that share the session state.