MongoDB ASP.NET Session Store Provider -


未知
Windows
C#

软件简介

MongoDB ASP.NET Session Store Provider 是 ASP.NET 将 Session 数据存储到
MongoDB 的开发包。

在 web.config 中的配置方法:

<configuration>
  <connectionStrings>
    <add name="MongoSessionServices" connectionString="mongodb://localhost" />
  </connectionStrings>
  <system.web>
    <sessionState
        mode="Custom"
        customProvider="MongoSessionStateProvider">
      <providers>
        <add name="MongoSessionStateProvider"
             type="MongoSessionStateStore.MongoSessionStateStore"
             connectionStringName="MongoSessionServices"
             writeExceptionsToEventLog="false"
             fsync="false"
             replicasToWrite="0" />
      </providers>
    </sessionState>
  </system.web>
</configuration>