Configuring Session State with a connection string
<configuration> <connectionStrings> <add name = "myString" connectionString = "data source=local;user id=User;password=password" /> </connectionStrings> <system.web> <sessionState mode="SQLServer" sqlConnectionString="myString" cookieless="false" timeout="20" /> </system.web> </configuration>