web.configの標準のconnectionStrings要素に一連の接続文字列があります
web.configのsessionState要素は、SQLセッション状態を使用する場合のsqlConnectionString属性の使用を指示します。
これは通常、接続文字列がファイル内の2つの場所で複製される結果であり、誰かが両方の場所を変更するのを忘れた場合、それらが同期しなくなる可能性があります。
この重複を取り除くためにどのようなメカニズムを使用できますか?
設定例:
<connectionStrings>
<add name="IWouldLikeToUseThisConnectionStringForSessionState" value="..."
</connectionStrings>
<sessionState
mode="SQLServer"
allowCustomSqlDatabase="true"
sqlConnectionString="DuplicatedConnectionStringHereAndCanGetOutOfSync"
/>