Reputation: 1117
Im trying to find a complete tutorial that will show me how to configure my asp.net 4.0 application to store sessions on a remote sqlserver 2005 db
can anyone help
thanks
Upvotes: 1
Views: 1193
Reputation: 66641
The steps you need to take.
The web config must contains the connections as:
<connectionStrings>
<add name="SqlState" connectionString="Data Source=111.111.111.111;DataBase=SessionState;User ID=sa;Password=***" providerName="System.Data.SqlClient" />
</connectionStrings>
and
<sessionState mode="SQLServer" sqlConnectionString="SqlState" allowCustomSqlDatabase="true" cookieless="false" timeout="20" />
How you setup the session state on remote computer:
http://msdn.microsoft.com/en-us/library/ms229862(VS.80).aspx
http://support.microsoft.com/kb/317604
Upvotes: 1